home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / Notes / Grayscale information.note < prev    next >
MacBinary  |  1993-12-15  |  13.0 KB  |  [TEXT/ttxt]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Wed Dec 15 23:56:38 1993, modified Wed Dec 15 23:56:38 1993, creator SimpleText, type ASCII, 12483 bytes "Grayscale information.note" , at 0x3143 632 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[ttxt]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1a 47 72 61 79 73 63 | 61 6c 65 20 69 6e 66 6f |..Graysc|ale info|
|00000010| 72 6d 61 74 69 6f 6e 2e | 6e 6f 74 65 00 00 00 00 |rmation.|note....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 74 74 78 | 74 00 00 00 00 00 00 00 |.TEXTttx|t.......|
|00000050| 00 00 00 00 00 30 c3 00 | 00 02 78 a9 35 9b 06 a9 |.....0..|..x.5...|
|00000060| 35 9b 06 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |5.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 73 67 00 00 |........|....sg..|
|00000080| 4e 6f 74 65 20 66 72 6f | 6d 20 41 70 70 6c 65 2e |Note fro|m Apple.|
|00000090| 0d 47 72 61 79 73 63 61 | 6c 65 20 49 6e 66 6f 72 |.Graysca|le Infor|
|000000a0| 6d 61 74 69 6f 6e 0d 20 | 0d 41 72 74 69 63 6c 65 |mation. |.Article|
|000000b0| 20 43 72 65 61 74 65 64 | 3a 20 32 33 20 41 70 72 | Created|: 23 Apr|
|000000c0| 69 6c 20 31 39 38 39 0d | 41 72 74 69 63 6c 65 20 |il 1989.|Article |
|000000d0| 4c 61 73 74 20 52 65 76 | 69 65 77 65 64 3a 20 36 |Last Rev|iewed: 6|
|000000e0| 20 4a 75 6c 79 20 31 39 | 39 32 0d 41 72 74 69 63 | July 19|92.Artic|
|000000f0| 6c 65 20 4c 61 73 74 20 | 55 70 64 61 74 65 64 3a |le Last |Updated:|
|00000100| 0d 20 0d 54 4f 50 49 43 | 20 2d 2d 2d 2d 2d 2d 2d |. .TOPIC| -------|
|00000110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000120| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000130| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 0d 41 20 75 73 65 |--------|. .A use|
|00000140| 72 20 68 61 73 20 66 6f | 75 6e 64 20 28 75 73 69 |r has fo|und (usi|
|00000150| 6e 67 20 76 65 72 79 20 | 73 6f 70 68 69 73 74 69 |ng very |sophisti|
|00000160| 63 61 74 65 64 20 70 68 | 6f 74 6f 6d 65 74 72 69 |cated ph|otometri|
|00000170| 63 20 64 65 76 69 63 65 | 73 29 20 74 68 61 74 20 |c device|s) that |
|00000180| 77 68 65 6e 0d 68 65 20 | 67 65 6e 65 72 61 74 65 |when.he |generate|
|00000190| 73 20 61 20 6d 6f 6e 6f | 63 68 72 6f 6d 65 20 70 |s a mono|chrome p|
|000001a0| 61 6c 65 74 74 65 20 66 | 72 6f 6d 20 61 20 63 6f |alette f|rom a co|
|000001b0| 6c 6f 72 20 70 61 6c 65 | 74 74 65 2c 20 73 6f 6d |lor pale|tte, som|
|000001c0| 65 20 6f 66 20 74 68 65 | 20 74 6f 6e 65 73 0d 61 |e of the| tones.a|
|000001d0| 72 65 20 69 64 65 6e 74 | 69 63 61 6c 2e 20 20 54 |re ident|ical. T|
|000001e0| 68 69 73 20 61 72 74 69 | 63 6c 65 20 64 69 73 63 |his arti|cle disc|
|000001f0| 75 73 73 65 73 20 74 68 | 69 73 20 70 68 65 6e 6f |usses th|is pheno|
|00000200| 6d 65 6e 6f 6e 2e 0d 20 | 0d 44 49 53 43 55 53 53 |menon.. |.DISCUSS|
|00000210| 49 4f 4e 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ION ----|--------|
|00000220| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 20 |--------|------. |
|00000240| 0d 49 6e 20 72 65 67 61 | 72 64 20 74 6f 20 75 73 |.In rega|rd to us|
|00000250| 69 6e 67 20 74 68 65 20 | 63 6f 6c 6f 72 20 70 61 |ing the |color pa|
|00000260| 6c 65 74 74 65 2c 20 74 | 68 65 20 50 61 6c 65 74 |lette, t|he Palet|
|00000270| 74 65 20 4d 61 6e 61 67 | 65 72 20 64 6f 65 73 20 |te Manag|er does |
|00000280| 6e 6f 74 20 70 6c 61 63 | 65 0d 6e 65 77 20 63 6f |not plac|e.new co|
|00000290| 6c 6f 72 73 20 69 6e 74 | 6f 20 74 68 65 20 64 69 |lors int|o the di|
|000002a0| 73 70 6c 61 79 20 64 65 | 76 69 63 65 27 73 20 63 |splay de|vice's c|
|000002b0| 6f 6c 6f 72 20 6c 6f 6f | 6b 2d 75 70 20 74 61 62 |olor loo|k-up tab|
|000002c0| 6c 65 20 28 43 4c 55 54 | 29 2e 20 20 49 74 20 6d |le (CLUT|). It m|
|000002d0| 61 70 73 0d 74 68 65 20 | 72 65 71 75 65 73 74 65 |aps.the |requeste|
|000002e0| 64 20 63 6f 6c 6f 72 73 | 20 69 6e 20 61 20 70 61 |d colors| in a pa|
|000002f0| 6c 65 74 74 65 20 74 6f | 20 61 76 61 69 6c 61 62 |lette to| availab|
|00000300| 6c 65 20 63 6f 6c 6f 72 | 73 20 77 69 74 68 69 6e |le color|s within|
|00000310| 20 74 68 65 20 63 75 72 | 72 65 6e 74 0d 63 6f 6c | the cur|rent.col|
|00000320| 6f 72 20 74 61 62 6c 65 | 2e 20 20 54 68 65 20 63 |or table|. The c|
|00000330| 6f 72 72 65 63 74 20 6d | 65 74 68 6f 64 20 66 6f |orrect m|ethod fo|
|00000340| 72 20 75 73 69 6e 67 20 | 73 70 65 63 69 66 69 63 |r using |specific|
|00000350| 20 63 6f 6c 6f 72 20 76 | 61 6c 75 65 73 20 69 73 | color v|alues is|
|00000360| 20 74 6f 20 75 73 65 0d | 74 68 65 20 43 6f 6c 6f | to use.|the Colo|
|00000370| 72 20 4d 61 6e 61 67 65 | 72 20 63 61 6c 6c 73 20 |r Manage|r calls |
|00000380| 74 6f 20 63 72 65 61 74 | 65 20 61 6e 64 20 6c 6f |to creat|e and lo|
|00000390| 61 64 20 61 20 70 72 6f | 67 72 61 6d 6d 65 64 20 |ad a pro|grammed |
|000003a0| 63 6f 6c 6f 72 20 74 61 | 62 6c 65 2e 0d 20 0d 54 |color ta|ble.. .T|
|000003b0| 68 65 72 65 20 61 72 65 | 20 73 6f 6d 65 20 6f 74 |here are| some ot|
|000003c0| 68 65 72 20 70 6f 69 6e | 74 73 20 74 68 61 74 20 |her poin|ts that |
|000003d0| 6d 75 73 74 20 74 61 6b | 65 6e 20 69 6e 74 6f 20 |must tak|en into |
|000003e0| 61 63 63 6f 75 6e 74 20 | 61 66 74 65 72 20 73 65 |account |after se|
|000003f0| 74 74 69 6e 67 0d 79 6f | 75 72 20 63 6f 6c 6f 72 |tting.yo|ur color|
|00000400| 73 20 77 69 74 68 20 74 | 68 65 20 43 6f 6c 6f 72 |s with t|he Color|
|00000410| 20 4d 61 6e 61 67 65 72 | 2e 0d 20 0d 2d ca 49 74 | Manager|.. .-.It|
|00000420| 20 69 73 20 70 6f 73 73 | 69 62 6c 65 20 74 6f 20 | is poss|ible to |
|00000430| 70 72 6f 64 75 63 65 20 | 67 72 61 79 73 20 62 79 |produce |grays by|
|00000440| 20 73 65 74 74 69 6e 67 | 20 74 68 65 20 6d 6f 6e | setting| the mon|
|00000450| 69 74 6f 72 20 74 6f 20 | 6d 6f 6e 6f 63 68 72 6f |itor to |monochro|
|00000460| 6d 65 0d 6f 75 74 70 75 | 74 20 61 6e 64 20 6e 6f |me.outpu|t and no|
|00000470| 74 20 73 65 74 74 69 6e | 67 20 67 72 61 79 73 2c |t settin|g grays,|
|00000480| 20 61 73 20 74 68 65 20 | 75 73 65 72 20 69 6e 20 | as the |user in |
|00000490| 71 75 65 73 74 69 6f 6e | 20 70 72 6f 62 61 62 6c |question| probabl|
|000004a0| 79 20 64 6f 65 73 2e 20 | 20 57 68 65 6e 0d 73 65 |y does. | When.se|
|000004b0| 6c 65 63 74 69 6e 67 20 | 6d 6f 6e 6f 63 68 72 6f |lecting |monochro|
|000004c0| 6d 65 20 66 72 6f 6d 20 | 74 68 65 20 6d 6f 6e 69 |me from |the moni|
|000004d0| 74 6f 72 27 73 20 43 6f | 6e 74 72 6f 6c 20 50 61 |tor's Co|ntrol Pa|
|000004e0| 6e 65 6c 20 43 44 45 56 | 2c 20 6c 75 6d 69 6e 61 |nel CDEV|, lumina|
|000004f0| 6e 63 65 0d 6d 61 70 70 | 69 6e 67 20 6f 66 20 74 |nce.mapp|ing of t|
|00000500| 68 65 20 63 6f 6c 6f 72 | 73 20 69 6e 20 74 68 65 |he color|s in the|
|00000510| 20 63 6f 6c 6f 72 20 74 | 61 62 6c 65 20 69 73 20 | color t|able is |
|00000520| 64 6f 6e 65 20 74 6f 20 | 63 61 6c 63 75 6c 61 74 |done to |calculat|
|00000530| 65 20 61 6e 64 20 72 65 | 70 6c 61 63 65 0d 74 68 |e and re|place.th|
|00000540| 65 20 52 47 42 20 76 61 | 6c 75 65 73 20 66 6f 72 |e RGB va|lues for|
|00000550| 20 61 20 6d 6f 6e 6f 63 | 68 72 6f 6d 65 20 70 69 | a monoc|hrome pi|
|00000560| 78 65 6c 2e 20 20 54 68 | 65 20 6c 75 6d 69 6e 61 |xel. Th|e lumina|
|00000570| 6e 63 65 20 6d 61 70 70 | 69 6e 67 20 66 6f 6c 6c |nce mapp|ing foll|
|00000580| 6f 77 73 20 74 68 69 73 | 0d 65 71 75 61 74 69 6f |ows this|.equatio|
|00000590| 6e 3a 0d 20 0d 20 20 20 | 4c 75 6d 69 6e 61 6e 63 |n:. . |Luminanc|
|000005a0| 65 20 3d 20 2e 33 2a 72 | 65 64 20 2b 20 2e 35 39 |e = .3*r|ed + .59|
|000005b0| 2a 67 72 65 65 6e 20 2b | 20 2e 31 31 2a 62 6c 75 |*green +| .11*blu|
|000005c0| 65 0d 20 0d 54 68 65 20 | 72 65 73 75 6c 74 69 6e |e. .The |resultin|
|000005d0| 67 20 76 61 6c 75 65 20 | 69 73 20 70 6c 61 63 65 |g value |is place|
|000005e0| 64 20 69 6e 74 6f 20 74 | 68 65 20 64 69 73 70 6c |d into t|he displ|
|000005f0| 61 79 20 64 65 76 69 63 | 65 27 73 20 74 61 62 6c |ay devic|e's tabl|
|00000600| 65 20 66 6f 72 20 52 2c | 20 47 2c 0d 61 6e 64 20 |e for R,| G,.and |
|00000610| 42 2e 20 20 54 68 65 20 | 76 61 6c 75 65 73 20 61 |B. The |values a|
|00000620| 72 65 20 61 6c 74 65 72 | 65 64 20 61 63 63 6f 72 |re alter|ed accor|
|00000630| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 61 62 6f 76 |ding to |the abov|
|00000640| 65 20 65 71 75 61 74 69 | 6f 6e 2e 20 54 68 69 73 |e equati|on. This|
|00000650| 20 6e 65 65 64 73 0d 74 | 6f 20 62 65 20 74 61 6b | needs.t|o be tak|
|00000660| 65 6e 20 69 6e 74 6f 20 | 61 63 63 6f 75 6e 74 20 |en into |account |
|00000670| 69 66 20 74 68 65 20 6d | 6f 6e 6f 63 68 72 6f 6d |if the m|onochrom|
|00000680| 65 20 6f 70 74 69 6f 6e | 20 69 73 20 63 68 6f 73 |e option| is chos|
|00000690| 65 6e 20 66 6f 72 20 74 | 68 65 20 41 70 70 6c 65 |en for t|he Apple|
|000006a0| 0d 48 69 67 68 2d 52 65 | 73 6f 6c 75 74 69 6f 6e |.High-Re|solution|
|000006b0| 20 43 6f 6c 6f 72 20 4d | 6f 6e 69 74 6f 72 2e 0d | Color M|onitor..|
|000006c0| 20 0d 2d ca 49 66 20 79 | 6f 75 20 70 6c 61 63 65 | .-.If y|ou place|
|000006d0| 20 79 6f 75 72 20 6f 77 | 6e 20 52 47 42 20 22 67 | your ow|n RGB "g|
|000006e0| 72 61 79 22 20 76 61 6c | 75 65 73 20 69 6e 74 6f |ray" val|ues into|
|000006f0| 20 61 20 63 6f 6c 6f 72 | 20 74 61 62 6c 65 2c 20 | a color| table, |
|00000700| 79 6f 75 20 6d 75 73 74 | 0d 61 6c 73 6f 20 74 61 |you must|.also ta|
|00000710| 6b 65 20 69 6e 74 6f 20 | 61 63 63 6f 75 6e 74 20 |ke into |account |
|00000720| 67 61 6d 6d 61 20 63 6f | 72 72 65 63 74 69 6f 6e |gamma co|rrection|
|00000730| 2e 20 47 61 6d 6d 61 20 | 63 6f 72 72 65 63 74 69 |. Gamma |correcti|
|00000740| 6f 6e 20 69 73 20 64 6f | 6e 65 20 62 79 20 74 68 |on is do|ne by th|
|00000750| 65 0d 64 69 73 70 6c 61 | 79 20 64 65 76 69 63 65 |e.displa|y device|
|00000760| 27 73 20 64 72 69 76 65 | 72 20 74 6f 20 63 6f 72 |'s drive|r to cor|
|00000770| 72 65 63 74 20 74 68 65 | 20 64 69 73 70 72 6f 70 |rect the| disprop|
|00000780| 6f 72 74 69 6f 6e 61 74 | 65 20 6c 69 67 68 74 20 |ortionat|e light |
|00000790| 6f 75 74 70 75 74 20 6f | 66 0d 74 68 65 20 43 52 |output o|f.the CR|
|000007a0| 54 20 70 68 6f 73 70 68 | 6f 72 73 20 62 79 20 63 |T phosph|ors by c|
|000007b0| 6f 6d 70 61 72 69 73 6f | 6e 20 77 69 74 68 20 74 |ompariso|n with t|
|000007c0| 68 65 20 70 72 6f 70 6f | 72 74 69 6f 6e 61 6c 20 |he propo|rtional |
|000007d0| 69 6e 70 75 74 20 76 6f | 6c 74 61 67 65 73 20 6f |input vo|ltages o|
|000007e0| 66 0d 74 68 65 20 76 69 | 64 65 6f 20 73 69 67 6e |f.the vi|deo sign|
|000007f0| 61 6c 2e 20 20 54 6f 20 | 73 65 74 20 61 20 6c 69 |al. To |set a li|
|00000800| 6e 65 61 72 20 72 65 6c | 61 74 69 6f 6e 73 68 69 |near rel|ationshi|
|00000810| 70 20 62 65 74 77 65 65 | 6e 20 63 6f 6c 6f 72 73 |p betwee|n colors|
|00000820| 20 61 6e 64 20 6f 75 74 | 70 75 74 2c 0d 74 68 65 | and out|put,.the|
|00000830| 20 76 61 6c 75 65 73 20 | 73 65 74 20 66 6f 72 20 | values |set for |
|00000840| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 49 49 |the Maci|ntosh II|
|00000850| 20 56 69 64 65 6f 20 43 | 61 72 64 20 61 72 65 20 | Video C|ard are |
|00000860| 63 68 61 6e 67 65 64 20 | 74 6f 20 6e 65 77 20 76 |changed |to new v|
|00000870| 61 6c 75 65 73 2c 0d 77 | 68 69 63 68 20 74 68 65 |alues,.w|hich the|
|00000880| 6e 20 70 72 6f 64 75 63 | 65 20 74 68 65 20 63 6f |n produc|e the co|
|00000890| 72 72 65 63 74 65 64 20 | 63 6f 6c 6f 72 20 6f 75 |rrected |color ou|
|000008a0| 74 70 75 74 20 6f 6e 20 | 74 68 65 20 6d 6f 6e 69 |tput on |the moni|
|000008b0| 74 6f 72 2e 20 54 65 73 | 74 0d 65 71 75 69 70 6d |tor. Tes|t.equipm|
|000008c0| 65 6e 74 20 64 65 74 65 | 63 74 73 20 61 20 67 61 |ent dete|cts a ga|
|000008d0| 6d 6d 61 2d 66 69 6c 74 | 65 72 65 64 20 73 65 74 |mma-filt|ered set|
|000008e0| 20 6f 66 20 76 61 6c 75 | 65 73 20 66 72 6f 6d 20 | of valu|es from |
|000008f0| 74 68 65 20 6d 6f 6e 69 | 74 6f 72 2e 0d 20 0d 54 |the moni|tor.. .T|
|00000900| 68 65 20 67 61 6d 6d 61 | 20 63 6f 72 72 65 63 74 |he gamma| correct|
|00000910| 69 6f 6e 20 69 73 20 61 | 75 74 6f 6d 61 74 69 63 |ion is a|utomatic|
|00000920| 61 6c 6c 79 20 68 61 6e | 64 6c 65 64 20 66 6f 72 |ally han|dled for|
|00000930| 20 61 6c 6c 20 76 61 6c | 75 65 73 20 77 72 69 74 | all val|ues writ|
|00000940| 74 65 6e 20 74 6f 0d 74 | 68 65 20 64 65 76 69 63 |ten to.t|he devic|
|00000950| 65 27 73 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 2e |e's colo|r table.|
|00000960| 20 20 54 68 69 73 20 69 | 73 20 62 61 73 65 64 20 | This i|s based |
|00000970| 6f 6e 20 61 6e 20 65 6d | 70 69 72 69 63 61 6c 6c |on an em|piricall|
|00000980| 79 2d 64 65 72 69 76 65 | 64 20 67 61 6d 6d 61 0d |y-derive|d gamma.|
|00000990| 6c 6f 6f 6b 2d 75 70 20 | 74 61 62 6c 65 2e 20 49 |look-up |table. I|
|000009a0| 66 20 74 68 65 20 73 65 | 6c 65 63 74 65 64 20 76 |f the se|lected v|
|000009b0| 61 6c 75 65 73 20 66 61 | 6c 6c 20 77 69 74 68 69 |alues fa|ll withi|
|000009c0| 6e 20 74 68 65 20 73 61 | 6d 65 20 6c 6f 6f 6b 2d |n the sa|me look-|
|000009d0| 75 70 20 74 61 62 6c 65 | 0d 72 65 66 65 72 65 6e |up table|.referen|
|000009e0| 63 65 2c 20 74 68 65 79 | 20 63 61 6e 20 62 65 20 |ce, they| can be |
|000009f0| 6d 61 70 70 65 64 20 74 | 6f 20 74 68 65 20 73 61 |mapped t|o the sa|
|00000a00| 6d 65 20 67 61 6d 6d 61 | 20 76 61 6c 75 65 2e 20 |me gamma| value. |
|00000a10| 20 54 68 69 73 20 77 6f | 75 6c 64 20 65 78 70 6c | This wo|uld expl|
|00000a20| 61 69 6e 0d 77 68 79 20 | 73 6f 6d 65 20 76 61 6c |ain.why |some val|
|00000a30| 75 65 73 20 61 72 65 20 | 74 68 65 20 73 61 6d 65 |ues are |the same|
|00000a40| 2e 20 20 20 54 68 65 20 | 67 61 6d 6d 61 20 74 61 |. The |gamma ta|
|00000a50| 62 6c 65 20 49 44 20 69 | 73 20 6c 6f 63 61 74 65 |ble ID i|s locate|
|00000a60| 64 20 69 6e 20 74 68 65 | 20 53 43 52 4e 0d 72 65 |d in the| SCRN.re|
|00000a70| 73 6f 75 72 63 65 20 6f | 66 20 74 68 65 20 53 79 |source o|f the Sy|
|00000a80| 73 74 65 6d 20 66 69 6c | 65 20 66 6f 72 20 74 68 |stem fil|e for th|
|00000a90| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 49 49 20 56 |e Macint|osh II V|
|00000aa0| 69 64 65 6f 20 43 61 72 | 64 2e 20 41 20 6e 65 77 |ideo Car|d. A new|
|00000ab0| 20 47 41 4d 41 0d 52 65 | 73 6f 75 72 63 65 20 74 | GAMA.Re|source t|
|00000ac0| 61 62 6c 65 20 63 61 6e | 20 62 65 20 64 65 66 69 |able can| be defi|
|00000ad0| 6e 65 64 20 61 6e 64 20 | 69 6e 73 74 61 6c 6c 65 |ned and |installe|
|00000ae0| 64 20 69 6e 20 74 68 65 | 20 53 79 73 74 65 6d 20 |d in the| System |
|00000af0| 66 69 6c 65 20 66 6f 72 | 20 75 73 65 20 62 79 0d |file for| use by.|
|00000b00| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 49 49 |the Maci|ntosh II|
|00000b10| 20 56 69 64 65 6f 20 43 | 61 72 64 2e 20 54 6f 20 | Video C|ard. To |
|00000b20| 75 73 65 20 74 68 65 20 | 6e 65 77 20 67 61 6d 6d |use the |new gamm|
|00000b30| 61 20 74 61 62 6c 65 2c | 20 74 68 65 20 47 41 4d |a table,| the GAM|
|00000b40| 41 20 72 65 73 6f 75 72 | 63 65 0d 49 44 20 6d 75 |A resour|ce.ID mu|
|00000b50| 73 74 20 62 65 20 63 68 | 61 6e 67 65 64 20 69 6e |st be ch|anged in|
|00000b60| 20 74 68 65 20 53 43 52 | 4e 20 72 65 73 6f 75 72 | the SCR|N resour|
|00000b70| 63 65 20 74 6f 20 74 68 | 61 74 20 6f 66 20 74 68 |ce to th|at of th|
|00000b80| 65 20 6e 65 77 20 74 61 | 62 6c 65 2e 0d 20 0d 54 |e new ta|ble.. .T|
|00000b90| 68 65 20 73 61 66 65 73 | 74 20 76 61 6c 75 65 73 |he safes|t values|
|00000ba0| 20 66 6f 72 20 61 6e 79 | 20 74 65 73 74 69 6e 67 | for any| testing|
|00000bb0| 20 77 69 6c 6c 20 70 72 | 6f 62 61 62 6c 79 20 62 | will pr|obably b|
|00000bc0| 65 20 61 20 6c 69 6e 65 | 61 72 20 74 61 62 6c 65 |e a line|ar table|
|00000bd0| 20 74 68 61 74 0d 64 6f | 65 73 20 6e 6f 20 67 61 | that.do|es no ga|
|00000be0| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 2e 20 |mma corr|ection. |
|00000bf0| 20 41 20 71 75 69 63 6b | 20 61 6e 64 20 65 61 73 | A quick| and eas|
|00000c00| 79 20 77 61 79 20 74 6f | 20 64 6f 20 74 68 69 73 |y way to| do this|
|00000c10| 20 69 73 20 74 6f 20 70 | 61 73 73 20 2d 31 0d 5b | is to p|ass -1.[|
|00000c20| 64 67 70 3a 20 61 63 63 | 6f 72 64 69 6e 67 20 74 |dgp: acc|ording t|
|00000c30| 6f 20 44 65 73 69 67 6e | 69 6e 67 20 43 61 72 64 |o Design|ing Card|
|00000c40| 73 20 26 20 44 72 69 76 | 65 72 73 20 79 6f 75 20 |s & Driv|ers you |
|00000c50| 73 68 6f 75 6c 64 20 70 | 61 73 73 20 4e 55 4c 4c |should p|ass NULL|
|00000c60| 2c 20 6e 6f 74 20 2d 31 | 5d 20 74 6f 20 74 68 65 |, not -1|] to the|
|00000c70| 20 53 65 74 47 61 6d 6d | 61 20 43 6f 6e 74 72 6f | SetGamm|a Contro|
|00000c80| 6c 20 70 61 72 61 6d 65 | 74 65 72 20 62 6c 6f 63 |l parame|ter bloc|
|00000c90| 6b 20 61 73 20 74 68 65 | 20 6e 65 77 20 74 61 62 |k as the| new tab|
|00000ca0| 6c 65 20 61 64 64 72 65 | 73 73 2e 20 20 54 68 69 |le addre|ss. Thi|
|00000cb0| 73 0d 63 61 75 73 65 73 | 20 61 20 6c 69 6e 65 61 |s.causes| a linea|
|00000cc0| 72 20 74 61 62 6c 65 20 | 74 6f 20 62 65 20 75 73 |r table |to be us|
|00000cd0| 65 64 2c 20 67 75 61 72 | 61 6e 74 65 65 69 6e 67 |ed, guar|anteeing|
|00000ce0| 20 74 68 61 74 20 61 6c | 6c 20 6f 66 20 74 68 65 | that al|l of the|
|00000cf0| 20 70 6f 73 73 69 62 6c | 65 0d 67 72 61 79 20 6c | possibl|e.gray l|
|00000d00| 65 76 65 6c 73 20 6f 66 | 20 74 68 65 20 63 61 72 |evels of| the car|
|00000d10| 64 20 61 72 65 20 61 76 | 61 69 6c 61 62 6c 65 2e |d are av|ailable.|
|00000d20| 20 20 41 74 20 74 68 61 | 74 20 70 6f 69 6e 74 2c | At tha|t point,|
|00000d30| 20 74 68 65 20 61 63 74 | 75 61 6c 20 63 6f 6c 6f | the act|ual colo|
|00000d40| 72 0d 6f 75 74 70 75 74 | 20 6f 6e 20 74 68 65 20 |r.output| on the |
|00000d50| 6d 6f 6e 69 74 6f 72 20 | 64 65 70 65 6e 64 73 20 |monitor |depends |
|00000d60| 6f 6e 20 74 68 65 20 70 | 68 6f 73 70 68 6f 72 73 |on the p|hosphors|
|00000d70| 20 74 68 65 6d 73 65 6c | 76 65 73 2c 20 77 68 69 | themsel|ves, whi|
|00000d80| 63 68 20 68 61 76 65 20 | 61 0d 76 61 72 69 61 6e |ch have |a.varian|
|00000d90| 63 65 20 66 72 6f 6d 20 | 6d 6f 6e 69 74 6f 72 20 |ce from |monitor |
|00000da0| 74 6f 20 6d 6f 6e 69 74 | 6f 72 20 6f 66 20 2b 2f |to monit|or of +/|
|00000db0| 2d 2e 30 32 20 66 6f 72 | 20 74 68 65 20 72 65 64 |-.02 for| the red|
|00000dc0| 20 61 6e 64 20 67 72 65 | 65 6e 20 70 68 6f 73 70 | and gre|en phosp|
|00000dd0| 68 6f 72 73 0d 61 6e 64 | 20 2b 2f 2d 2e 30 31 35 |hors.and| +/-.015|
|00000de0| 20 66 6f 72 20 74 68 65 | 20 62 6c 75 65 2e 20 54 | for the| blue. T|
|00000df0| 68 65 20 43 49 45 20 63 | 6f 6f 72 64 69 6e 61 74 |he CIE c|oordinat|
|00000e00| 65 73 20 6f 66 20 74 68 | 65 20 70 68 6f 73 70 68 |es of th|e phosph|
|00000e10| 6f 72 73 20 61 72 65 3a | 0d 20 0d 20 20 20 52 65 |ors are:|. . Re|
|00000e20| 64 3a 20 78 3d 2e 36 32 | 35 20 79 3d 2e 33 34 20 |d: x=.62|5 y=.34 |
|00000e30| 47 72 65 65 6e 3a 20 78 | 3d 2e 32 38 20 20 20 79 |Green: x|=.28 y|
|00000e40| 3d 2e 35 39 35 20 42 6c | 75 65 3a 20 20 20 20 20 |=.595 Bl|ue: |
|00000e50| 78 3d 2e 31 35 35 20 79 | 3d 2e 30 37 30 0d 20 0d |x=.155 y|=.070. .|
|00000e60| 54 6f 20 70 72 6f 70 65 | 72 6c 79 20 73 65 74 20 |To prope|rly set |
|00000e70| 74 68 65 20 67 61 6d 6d | 61 20 74 61 62 6c 65 2c |the gamm|a table,|
|00000e80| 20 73 65 65 20 74 68 65 | 20 69 6e 66 6f 72 6d 61 | see the| informa|
|00000e90| 74 69 6f 6e 20 62 65 6c | 6f 77 20 61 62 6f 75 74 |tion bel|ow about|
|00000ea0| 20 68 6f 77 20 74 68 65 | 0d 64 72 69 76 65 72 20 | how the|.driver |
|00000eb0| 75 73 65 73 20 74 68 69 | 73 20 74 61 62 6c 65 2e |uses thi|s table.|
|00000ec0| 20 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 61 6c 73 | You sh|ould als|
|00000ed0| 6f 20 69 6e 76 65 73 74 | 69 67 61 74 65 20 68 6f |o invest|igate ho|
|00000ee0| 77 20 74 6f 20 63 6f 6e | 74 72 6f 6c 20 64 65 76 |w to con|trol dev|
|00000ef0| 69 63 65 0d 64 72 69 76 | 65 72 73 2e 20 54 68 69 |ice.driv|ers. Thi|
|00000f00| 73 20 69 73 20 64 65 73 | 63 72 69 62 65 64 20 69 |s is des|cribed i|
|00000f10| 6e 20 22 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |n "Insid|e Macint|
|00000f20| 6f 73 68 20 56 6f 6c 75 | 6d 65 20 49 49 2e 22 20 |osh Volu|me II." |
|00000f30| 41 6e 6f 74 68 65 72 20 | 73 6f 75 72 63 65 0d 6f |Another |source.o|
|00000f40| 66 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 73 |f inform|ation is|
|00000f50| 20 74 68 65 20 22 44 65 | 73 69 67 6e 69 6e 67 20 | the "De|signing |
|00000f60| 43 61 72 64 73 20 61 6e | 64 20 44 72 69 76 65 72 |Cards an|d Driver|
|00000f70| 73 20 4d 61 6e 75 61 6c | 20 66 6f 72 20 74 68 65 |s Manual| for the|
|00000f80| 0d 4d 61 63 69 6e 74 6f | 73 68 2e 22 0d 20 0d 47 |.Macinto|sh.". .G|
|00000f90| 61 6d 6d 61 20 49 6e 66 | 6f 72 6d 61 74 69 6f 6e |amma Inf|ormation|
|00000fa0| 0d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |.-------|--------|
|00000fb0| 2d 2d 0d 49 6e 20 74 68 | 65 20 63 75 72 72 65 6e |--.In th|e curren|
|00000fc0| 74 20 69 6d 70 6c 65 6d | 65 6e 74 61 74 69 6f 6e |t implem|entation|
|00000fd0| 20 6f 66 20 74 68 65 20 | 76 69 64 65 6f 20 64 72 | of the |video dr|
|00000fe0| 69 76 65 72 73 2c 20 67 | 61 6d 6d 61 20 63 6f 72 |ivers, g|amma cor|
|00000ff0| 72 65 63 74 69 6f 6e 20 | 69 73 0d 61 70 70 6c 69 |rection |is.appli|
|00001000| 65 64 20 74 6f 20 72 65 | 71 75 65 73 74 65 64 2c |ed to re|quested,|
|00001010| 20 61 62 73 6f 6c 75 74 | 65 20 63 6f 6c 6f 72 73 | absolut|e colors|
|00001020| 2c 20 69 6d 6d 65 64 69 | 61 74 65 6c 79 20 62 65 |, immedi|ately be|
|00001030| 66 6f 72 65 20 74 68 65 | 79 20 61 72 65 20 73 65 |fore the|y are se|
|00001040| 74 20 69 6e 0d 74 68 65 | 20 63 6f 6c 6f 72 20 6c |t in.the| color l|
|00001050| 6f 6f 6b 2d 75 70 20 74 | 61 62 6c 65 20 62 79 20 |ook-up t|able by |
|00001060| 74 68 65 20 53 65 74 45 | 6e 74 72 69 65 73 20 63 |the SetE|ntries c|
|00001070| 6f 6e 74 72 6f 6c 20 63 | 61 6c 6c 2e 20 4d 6f 72 |ontrol c|all. Mor|
|00001080| 65 20 73 70 65 63 69 66 | 69 63 61 6c 6c 79 2c 0d |e specif|ically,.|
|00001090| 73 6f 6d 65 20 6e 75 6d | 62 65 72 20 6f 66 20 68 |some num|ber of h|
|000010a0| 69 67 68 2d 6f 72 64 65 | 72 20 62 69 74 73 20 61 |igh-orde|r bits a|
|000010b0| 72 65 20 65 78 74 72 61 | 63 74 65 64 20 66 72 6f |re extra|cted fro|
|000010c0| 6d 20 74 68 65 20 72 65 | 64 2c 20 67 72 65 65 6e |m the re|d, green|
|000010d0| 2c 20 61 6e 64 20 62 6c | 75 65 0d 63 68 61 6e 6e |, and bl|ue.chann|
|000010e0| 65 6c 73 20 61 6e 64 20 | 75 73 65 64 20 61 73 20 |els and |used as |
|000010f0| 61 6e 20 69 6e 64 65 78 | 20 69 6e 74 6f 20 74 61 |an index| into ta|
|00001100| 62 6c 65 73 20 6f 66 20 | 63 6f 72 72 65 63 74 65 |bles of |correcte|
|00001110| 64 20 76 61 6c 75 65 73 | 2e 20 20 54 68 65 73 65 |d values|. These|
|00001120| 0d 76 61 6c 75 65 73 20 | 61 72 65 20 74 68 65 6e |.values |are then|
|00001130| 20 70 6c 61 63 65 64 20 | 69 6e 74 6f 20 74 68 65 | placed |into the|
|00001140| 20 68 61 72 64 77 61 72 | 65 2c 20 79 69 65 6c 64 | hardwar|e, yield|
|00001150| 69 6e 67 20 63 6f 72 72 | 65 63 74 65 64 20 6f 75 |ing corr|ected ou|
|00001160| 74 70 75 74 2e 20 4f 6e | 0d 74 68 65 20 4d 61 63 |tput. On|.the Mac|
|00001170| 69 6e 74 6f 73 68 20 49 | 49 20 56 69 64 65 6f 20 |intosh I|I Video |
|00001180| 43 61 72 64 20 28 74 68 | 65 20 54 46 42 20 63 61 |Card (th|e TFB ca|
|00001190| 72 64 29 2c 20 74 68 65 | 20 68 69 67 68 20 65 69 |rd), the| high ei|
|000011a0| 67 68 74 20 62 69 74 73 | 20 6f 66 20 65 61 63 68 |ght bits| of each|
|000011b0| 0d 63 68 61 6e 6e 65 6c | 20 61 72 65 20 75 73 65 |.channel| are use|
|000011c0| 64 20 74 6f 20 72 65 66 | 65 72 65 6e 63 65 20 74 |d to ref|erence t|
|000011d0| 68 65 20 67 61 6d 6d 61 | 20 74 61 62 6c 65 2e 0d |he gamma| table..|
|000011e0| 20 0d 54 68 65 72 65 20 | 61 72 65 20 61 20 6e 75 | .There |are a nu|
|000011f0| 6d 62 65 72 20 6f 66 20 | 6d 69 6e 6f 72 20 73 68 |mber of |minor sh|
|00001200| 6f 72 74 63 6f 6d 69 6e | 67 73 20 69 6e 20 74 68 |ortcomin|gs in th|
|00001210| 69 73 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |is imple|mentatio|
|00001220| 6e 2e 20 46 69 72 73 74 | 2c 0d 74 68 65 72 65 20 |n. First|,.there |
|00001230| 69 73 20 6e 6f 74 20 61 | 62 73 6f 6c 75 74 65 20 |is not a|bsolute |
|00001240| 73 79 6d 6d 65 74 72 79 | 20 62 65 74 77 65 65 6e |symmetry| between|
|00001250| 20 74 68 65 20 53 65 74 | 45 6e 74 72 69 65 73 20 | the Set|Entries |
|00001260| 63 6f 6e 74 72 6f 6c 20 | 63 61 6c 6c 2c 20 77 68 |control |call, wh|
|00001270| 69 63 68 0d 73 65 74 73 | 20 74 68 65 20 43 4c 55 |ich.sets| the CLU|
|00001280| 54 2c 20 61 6e 64 20 74 | 68 65 20 47 65 74 45 6e |T, and t|he GetEn|
|00001290| 74 72 69 65 73 20 73 74 | 61 74 75 73 20 63 61 6c |tries st|atus cal|
|000012a0| 6c 2c 20 77 68 69 63 68 | 20 72 65 61 64 73 20 74 |l, which| reads t|
|000012b0| 68 65 20 43 4c 55 54 0d | 68 61 72 64 77 61 72 65 |he CLUT.|hardware|
|000012c0| 2c 20 62 65 63 61 75 73 | 65 20 74 68 65 20 67 61 |, becaus|e the ga|
|000012d0| 6d 6d 61 20 63 6f 72 72 | 65 63 74 69 6f 6e 20 74 |mma corr|ection t|
|000012e0| 6f 6f 6b 20 70 6c 61 63 | 65 20 61 73 20 70 61 72 |ook plac|e as par|
|000012f0| 74 20 6f 66 20 74 68 65 | 0d 53 65 74 45 6e 74 72 |t of the|.SetEntr|
|00001300| 69 65 73 20 63 61 6c 6c | 2e 20 41 6c 73 6f 2c 20 |ies call|. Also, |
|00001310| 74 68 65 20 75 6e 63 6f | 72 72 65 63 74 65 64 20 |the unco|rrected |
|00001320| 76 61 6c 75 65 73 20 61 | 72 65 20 67 65 6e 65 72 |values a|re gener|
|00001330| 61 6c 6c 79 20 75 6e 72 | 65 63 6f 76 65 72 61 62 |ally unr|ecoverab|
|00001340| 6c 65 0d 28 61 6c 74 68 | 6f 75 67 68 20 61 20 63 |le.(alth|ough a c|
|00001350| 6f 70 79 20 6f 66 20 74 | 68 65 20 61 62 73 6f 6c |opy of t|he absol|
|00001360| 75 74 65 20 63 6f 6c 6f | 72 73 20 61 72 65 20 61 |ute colo|rs are a|
|00001370| 6c 77 61 79 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |lways av|ailable |
|00001380| 69 6e 20 74 68 65 0d 47 | 44 65 76 69 63 65 20 73 |in the.G|Device s|
|00001390| 74 72 75 63 74 75 72 65 | 29 2e 0d 20 0d 46 69 6e |tructure|).. .Fin|
|000013a0| 61 6c 6c 79 2c 20 69 74 | 20 69 73 20 6d 6f 73 74 |ally, it| is most|
|000013b0| 20 64 65 73 69 72 61 62 | 6c 65 20 74 6f 20 65 78 | desirab|le to ex|
|000013c0| 74 72 61 63 74 20 6d 6f | 72 65 20 62 69 74 73 20 |tract mo|re bits |
|000013d0| 61 73 20 61 6e 20 69 6e | 64 65 78 20 74 6f 20 74 |as an in|dex to t|
|000013e0| 68 65 0d 67 61 6d 6d 61 | 20 74 61 62 6c 65 20 74 |he.gamma| table t|
|000013f0| 68 61 6e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |han the |number o|
|00001400| 66 20 62 69 74 73 20 6f | 66 20 63 6f 6c 6f 72 20 |f bits o|f color |
|00001410| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 74 68 61 74 |informat|ion that|
|00001420| 20 77 69 6c 6c 20 62 65 | 20 73 65 74 0d 69 6e 20 | will be| set.in |
|00001430| 74 68 65 20 43 4c 55 54 | 2e 20 20 54 68 69 73 20 |the CLUT|. This |
|00001440| 77 61 79 2c 20 79 6f 75 | 20 61 76 6f 69 64 20 61 |way, you| avoid a|
|00001450| 20 6c 6f 73 73 20 6f 66 | 20 63 6f 6c 6f 72 20 72 | loss of| color r|
|00001460| 65 73 6f 6c 75 74 69 6f | 6e 20 61 66 74 65 72 0d |esolutio|n after.|
|00001470| 63 6f 72 72 65 63 74 69 | 6f 6e 2e 20 46 6f 72 20 |correcti|on. For |
|00001480| 65 78 61 6d 70 6c 65 2c | 20 74 68 65 20 54 46 42 |example,| the TFB|
|00001490| 20 63 61 72 64 20 68 61 | 73 20 61 6e 20 65 69 67 | card ha|s an eig|
|000014a0| 68 74 2d 62 69 74 2d 70 | 65 72 2d 63 68 61 6e 6e |ht-bit-p|er-chann|
|000014b0| 65 6c 20 43 4c 55 54 2c | 0d 62 75 74 20 6f 6e 6c |el CLUT,|.but onl|
|000014c0| 79 20 75 73 65 73 20 74 | 68 65 20 6d 6f 73 74 2d |y uses t|he most-|
|000014d0| 73 69 67 6e 69 66 69 63 | 61 6e 74 20 65 69 67 68 |signific|ant eigh|
|000014e0| 74 20 62 69 74 73 20 6f | 66 20 74 68 65 20 28 31 |t bits o|f the (1|
|000014f0| 36 2d 62 69 74 29 20 63 | 68 61 6e 6e 65 6c 0d 69 |6-bit) c|hannel.i|
|00001500| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 66 6f 72 20 67 |nformati|on for g|
|00001510| 61 6d 6d 61 20 6c 6f 6f | 6b 75 70 2e 20 41 74 20 |amma loo|kup. At |
|00001520| 6c 6f 77 65 72 20 69 6e | 74 65 6e 73 69 74 69 65 |lower in|tensitie|
|00001530| 73 2c 20 74 68 65 20 67 | 61 6d 6d 61 20 63 6f 72 |s, the g|amma cor|
|00001540| 72 65 63 74 69 6f 6e 0d | 69 6e 63 72 65 61 73 65 |rection.|increase|
|00001550| 73 20 74 68 65 20 64 69 | 73 74 61 6e 63 65 20 62 |s the di|stance b|
|00001560| 65 74 77 65 65 6e 20 61 | 64 6a 61 63 65 6e 74 20 |etween a|djacent |
|00001570| 76 61 6c 75 65 73 2e 20 | 20 41 73 20 61 20 72 65 |values. | As a re|
|00001580| 73 75 6c 74 2c 20 6f 6e | 20 74 68 65 20 54 46 42 |sult, on| the TFB|
|00001590| 0d 63 61 72 64 2c 20 73 | 6f 6d 65 20 64 79 6e 61 |.card, s|ome dyna|
|000015a0| 6d 69 63 20 72 61 6e 67 | 65 20 69 73 20 6c 6f 73 |mic rang|e is los|
|000015b0| 74 20 61 74 20 6c 6f 77 | 65 72 20 69 6e 74 65 6e |t at low|er inten|
|000015c0| 73 69 74 69 65 73 2e 20 | 54 68 69 73 20 63 6f 75 |sities. |This cou|
|000015d0| 6c 64 20 62 65 0d 63 6f | 72 72 65 63 74 65 64 20 |ld be.co|rrected |
|000015e0| 62 79 20 65 78 74 72 61 | 63 74 69 6e 67 20 6e 69 |by extra|cting ni|
|000015f0| 6e 65 20 6f 72 20 74 65 | 6e 20 62 69 74 73 20 6f |ne or te|n bits o|
|00001600| 66 20 63 68 61 6e 6e 65 | 6c 20 69 6e 66 6f 72 6d |f channe|l inform|
|00001610| 61 74 69 6f 6e 20 72 61 | 74 68 65 72 0d 74 68 61 |ation ra|ther.tha|
|00001620| 6e 20 65 69 67 68 74 20 | 61 6e 64 20 75 73 69 6e |n eight |and usin|
|00001630| 67 20 61 20 6c 61 72 67 | 65 72 2c 20 67 61 6d 6d |g a larg|er, gamm|
|00001640| 61 2d 63 6f 72 72 65 63 | 74 69 6f 6e 20 74 61 62 |a-correc|tion tab|
|00001650| 6c 65 2c 20 62 75 74 20 | 74 68 69 73 20 6f 70 74 |le, but |this opt|
|00001660| 69 6f 6e 20 77 61 73 0d | 64 65 63 6c 69 6e 65 64 |ion was.|declined|
|00001670| 20 74 6f 20 72 65 64 75 | 63 65 20 67 61 6d 6d 61 | to redu|ce gamma|
|00001680| 20 74 61 62 6c 65 20 73 | 69 7a 65 2e 0d 20 0d 54 | table s|ize.. .T|
|00001690| 68 65 20 47 61 6d 6d 61 | 54 62 6c 20 44 61 74 61 |he Gamma|Tbl Data|
|000016a0| 20 53 74 72 75 63 74 75 | 72 65 0d 2d 2d 2d 2d 2d | Structu|re.-----|
|000016b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000016c0| 2d 2d 2d 2d 2d 2d 0d 5b | 64 67 70 3a 20 54 68 69 |------.[|dgp: Thi|
|000016d0| 73 20 73 65 63 74 69 6f | 6e 20 68 61 73 20 6d 61 |s sectio|n has ma|
|000016e0| 6e 79 20 65 72 72 6f 72 | 73 2e 20 49 20 73 75 67 |ny error|s. I sug|
|000016f0| 67 65 73 74 20 79 6f 75 | 20 74 75 72 6e 20 69 6e |gest you| turn in|
|00001700| 73 74 65 61 64 20 74 6f | 20 44 65 73 69 67 6e 69 |stead to| Designi|
|00001710| 6e 67 20 43 61 72 64 73 | 20 61 6e 64 20 44 72 69 |ng Cards| and Dri|
|00001720| 76 65 72 73 2c 20 33 72 | 64 20 45 64 2e 2c 20 77 |vers, 3r|d Ed., w|
|00001730| 68 69 63 68 2c 20 66 69 | 6e 61 6c 6c 79 2c 20 69 |hich, fi|nally, i|
|00001740| 6e 63 6c 75 64 65 73 20 | 74 68 69 73 20 69 6e 66 |ncludes |this inf|
|00001750| 6f 72 6d 61 74 69 6f 6e | 2e 5d 0d 0d 54 68 65 20 |ormation|.]..The |
|00001760| 73 74 72 75 63 74 75 72 | 65 20 69 74 73 65 6c 66 |structur|e itself|
|00001770| 20 68 61 73 20 62 65 65 | 6e 20 61 20 62 69 74 20 | has bee|n a bit |
|00001780| 6f 66 20 61 20 6d 79 73 | 74 65 72 79 2c 20 61 73 |of a mys|tery, as|
|00001790| 20 69 74 20 69 73 20 6e | 6f 74 20 64 65 66 69 6e | it is n|ot defin|
|000017a0| 65 64 20 69 6e 0d 65 69 | 74 68 65 72 20 22 49 6e |ed in.ei|ther "In|
|000017b0| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 56 |side Mac|intosh V|
|000017c0| 6f 6c 75 6d 65 20 56 22 | 20 6f 72 20 74 68 65 20 |olume V"| or the |
|000017d0| 44 65 73 69 67 6e 69 6e | 67 20 43 61 72 64 73 20 |Designin|g Cards |
|000017e0| 61 6e 64 20 44 72 69 76 | 65 72 73 0d 4d 61 6e 75 |and Driv|ers.Manu|
|000017f0| 61 6c 2e 20 54 68 69 73 | 20 69 73 20 74 68 65 20 |al. This| is the |
|00001800| 73 74 72 75 63 74 75 72 | 65 3a 0d 20 0d 20 20 20 |structur|e:. . |
|00001810| 72 65 63 6f 72 64 20 47 | 61 6d 6d 61 54 61 62 6c |record G|ammaTabl|
|00001820| 65 20 6f 66 0d 20 20 20 | 67 56 65 72 73 69 6f 6e |e of. |gVersion|
|00001830| 3a 20 69 6e 74 65 67 65 | 72 3b 20 7b 67 74 61 62 |: intege|r; {gtab|
|00001840| 20 76 65 72 73 69 6f 6e | 2c 20 63 75 72 72 65 6e | version|, curren|
|00001850| 74 6c 79 20 30 7d 0d 20 | 20 20 67 54 79 70 65 3a |tly 0}. | gType:|
|00001860| 20 69 6e 74 65 67 65 72 | 3b 20 7b 64 72 48 77 49 | integer|; {drHwI|
|00001870| 64 20 76 61 6c 75 65 7d | 0d 20 20 20 67 46 6f 72 |d value}|. gFor|
|00001880| 6d 75 6c 61 53 69 7a 65 | 3a 20 69 6e 74 65 67 65 |mulaSize|: intege|
|00001890| 72 3b 20 7b 73 69 7a 65 | 20 6f 66 20 66 6f 72 6d |r; {size| of form|
|000018a0| 75 6c 61 20 64 61 74 61 | 2c 20 62 65 6c 6f 77 7d |ula data|, below}|
|000018b0| 0d 20 20 20 67 43 68 61 | 6e 43 6e 74 3a 20 69 6e |. gCha|nCnt: in|
|000018c0| 74 65 67 65 72 3b 20 7b | 23 20 6f 66 20 63 6f 6d |teger; {|# of com|
|000018d0| 70 6f 6e 65 6e 74 20 63 | 68 61 6e 6e 65 6c 73 7d |ponent c|hannels}|
|000018e0| 0d 20 20 20 67 44 61 74 | 61 43 6e 74 3a 20 69 6e |. gDat|aCnt: in|
|000018f0| 74 65 67 65 72 3b 20 7b | 23 20 6f 66 20 76 61 6c |teger; {|# of val|
|00001900| 75 65 73 20 70 65 72 20 | 63 68 61 6e 6e 65 6c 7d |ues per |channel}|
|00001910| 0d 20 20 20 67 44 61 74 | 61 57 69 64 74 68 3a 20 |. gDat|aWidth: |
|00001920| 69 6e 74 65 67 65 72 3b | 20 7b 73 69 7a 65 20 6f |integer;| {size o|
|00001930| 66 20 64 61 74 61 20 69 | 6e 20 74 61 62 6c 65 73 |f data i|n tables|
|00001940| 7d 0d 20 20 20 7b 67 61 | 6d 6d 61 20 63 6f 72 72 |}. {ga|mma corr|
|00001950| 65 63 74 69 6f 6e 20 6c | 6f 6f 6b 2d 75 70 20 74 |ection l|ook-up t|
|00001960| 61 62 6c 65 73 7d 0d 20 | 20 20 67 46 6f 72 6d 75 |ables}. | gFormu|
|00001970| 6c 61 44 61 74 61 3a 20 | 61 72 72 61 79 20 5b 30 |laData: |array [0|
|00001980| 2e 2e 20 67 46 6f 72 6d | 75 6c 61 53 69 7a 65 5d |.. gForm|ulaSize]|
|00001990| 20 6f 66 20 62 79 74 65 | 3b 0d 20 20 20 7b 64 61 | of byte|;. {da|
|000019a0| 74 61 20 66 6f 72 20 67 | 61 6d 6d 61 20 63 61 6c |ta for g|amma cal|
|000019b0| 63 75 6c 61 74 69 6f 6e | 20 66 6f 72 6d 75 6c 61 |culation| formula|
|000019c0| 7d 0d 20 20 20 67 44 61 | 74 61 3a 20 61 72 72 61 |}. gDa|ta: arra|
|000019d0| 79 20 5b 30 2e 2e 20 67 | 44 61 74 61 43 6e 74 5d |y [0.. g|DataCnt]|
|000019e0| 20 6f 66 20 62 79 74 65 | 3b 0d 20 20 20 65 6e 64 | of byte|;. end|
|000019f0| 3b 0d 20 0d 49 6e 20 74 | 68 69 73 20 73 74 72 75 |;. .In t|his stru|
|00001a00| 63 74 75 72 65 2c 20 67 | 56 65 72 73 69 6f 6e 20 |cture, g|Version |
|00001a10| 72 65 70 72 65 73 65 6e | 74 73 20 74 68 65 20 67 |represen|ts the g|
|00001a20| 61 6d 6d 61 20 74 61 62 | 6c 65 20 66 6f 72 6d 61 |amma tab|le forma|
|00001a30| 74 20 76 65 72 73 69 6f | 6e 2c 0d 77 68 69 63 68 |t versio|n,.which|
|00001a40| 20 69 73 20 30 20 66 6f | 72 20 61 6c 6c 20 63 75 | is 0 fo|r all cu|
|00001a50| 72 72 65 6e 74 20 63 61 | 72 64 73 2e 20 20 54 68 |rrent ca|rds. Th|
|00001a60| 65 20 67 54 79 70 65 20 | 66 69 65 6c 64 20 68 6f |e gType |field ho|
|00001a70| 6c 64 73 20 74 68 65 20 | 64 72 48 77 49 64 20 76 |lds the |drHwId v|
|00001a80| 61 6c 75 65 0d 66 6f 72 | 20 74 68 69 73 20 62 6f |alue.for| this bo|
|00001a90| 61 72 64 20 74 6f 20 69 | 64 65 6e 74 69 66 79 20 |ard to i|dentify |
|00001aa0| 74 68 65 20 62 6f 61 72 | 64 20 74 68 61 74 20 74 |the boar|d that t|
|00001ab0| 68 69 73 20 74 61 62 6c | 65 20 77 61 73 20 6d 65 |his tabl|e was me|
|00001ac0| 61 73 75 72 65 64 20 66 | 6f 72 2e 0d 4e 6f 74 65 |asured f|or..Note|
|00001ad0| 20 74 68 61 74 20 74 68 | 69 73 20 6d 65 61 6e 73 | that th|is means|
|00001ae0| 20 74 68 61 74 20 61 20 | 73 69 6e 67 6c 65 20 67 | that a |single g|
|00001af0| 61 6d 6d 61 20 74 61 62 | 6c 65 20 63 61 6e 27 74 |amma tab|le can't|
|00001b00| 20 64 69 72 65 63 74 6c | 79 20 62 65 20 73 68 61 | directl|y be sha|
|00001b10| 72 65 64 0d 62 65 74 77 | 65 65 6e 20 74 77 6f 20 |red.betw|een two |
|00001b20| 64 69 66 66 65 72 65 6e | 74 20 63 61 72 64 73 2c |differen|t cards,|
|00001b30| 20 65 76 65 6e 20 69 66 | 20 74 68 65 79 20 62 6f | even if| they bo|
|00001b40| 74 68 20 68 61 76 65 20 | 74 68 65 20 73 61 6d 65 |th have |the same|
|00001b50| 20 43 4c 55 54 20 72 65 | 73 70 6f 6e 73 65 0d 63 | CLUT re|sponse.c|
|00001b60| 75 72 76 65 20 28 77 68 | 69 63 68 20 69 73 20 75 |urve (wh|ich is u|
|00001b70| 73 75 61 6c 6c 79 20 6c | 69 6e 65 61 72 29 2e 20 |sually l|inear). |
|00001b80| 20 54 68 69 73 20 6c 65 | 74 73 20 74 68 65 20 64 | This le|ts the d|
|00001b90| 61 74 61 20 69 6e 20 74 | 68 65 20 67 61 6d 6d 61 |ata in t|he gamma|
|00001ba0| 20 74 61 62 6c 65 20 62 | 65 0d 69 6e 20 61 6e 20 | table b|e.in an |
|00001bb0| 61 70 70 72 6f 70 72 69 | 61 74 65 20 66 6f 72 6d |appropri|ate form|
|00001bc0| 20 66 6f 72 20 76 61 72 | 79 69 6e 67 20 68 61 72 | for var|ying har|
|00001bd0| 64 77 61 72 65 20 28 74 | 68 61 74 20 69 73 2c 20 |dware (t|hat is, |
|00001be0| 61 20 63 61 72 64 20 63 | 6f 75 6c 64 20 68 61 76 |a card c|ould hav|
|00001bf0| 65 0d 66 6f 75 72 2d 62 | 69 74 2f 63 68 61 6e 6e |e.four-b|it/chann|
|00001c00| 65 6c 20 44 41 43 73 20 | 61 6e 64 20 6d 69 67 68 |el DACs |and migh|
|00001c10| 74 20 70 72 65 66 65 72 | 20 67 61 6d 6d 61 20 64 |t prefer| gamma d|
|00001c20| 61 74 61 20 69 6e 20 74 | 68 65 20 72 61 6e 67 65 |ata in t|he range|
|00001c30| 20 24 30 2e 2e 24 46 0d | 72 61 74 68 65 72 20 74 | $0..$F.|rather t|
|00001c40| 68 61 6e 20 24 30 2e 2e | 24 46 46 29 2e 0d 20 0d |han $0..|$FF).. .|
|00001c50| 67 46 6f 72 6d 75 6c 61 | 53 69 7a 65 20 64 65 66 |gFormula|Size def|
|00001c60| 69 6e 65 73 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |ines the| number |
|00001c70| 6f 66 20 62 79 74 65 73 | 20 6f 63 63 75 70 69 65 |of bytes| occupie|
|00001c80| 64 20 62 79 20 74 68 65 | 20 67 46 6f 72 6d 75 6c |d by the| gFormul|
|00001c90| 61 44 61 74 61 0d 66 69 | 65 6c 64 2e 20 4f 6e 20 |aData.fi|eld. On |
|00001ca0| 41 70 70 6c 65 27 73 20 | 63 75 72 72 65 6e 74 20 |Apple's |current |
|00001cb0| 76 69 64 65 6f 20 63 61 | 72 64 73 2c 20 67 61 6d |video ca|rds, gam|
|00001cc0| 6d 61 20 63 6f 72 72 65 | 63 74 69 6f 6e 20 69 73 |ma corre|ction is|
|00001cd0| 20 64 6f 6e 65 20 62 79 | 0d 6d 6f 64 69 66 79 69 | done by|.modifyi|
|00001ce0| 6e 67 20 74 68 65 20 76 | 61 6c 75 65 73 20 6c 6f |ng the v|alues lo|
|00001cf0| 61 64 65 64 20 69 6e 74 | 6f 20 74 68 65 20 43 4c |aded int|o the CL|
|00001d00| 55 54 20 62 79 20 74 68 | 65 20 53 65 74 45 6e 74 |UT by th|e SetEnt|
|00001d10| 72 69 65 73 20 63 6f 6e | 74 72 6f 6c 20 63 61 6c |ries con|trol cal|
|00001d20| 6c 0d 74 6f 20 61 70 70 | 72 6f 78 69 6d 61 74 65 |l.to app|roximate|
|00001d30| 20 6c 69 6e 65 61 72 20 | 72 65 73 70 6f 6e 73 65 | linear |response|
|00001d40| 20 6f 6e 20 74 68 65 20 | 64 69 73 70 6c 61 79 2e | on the |display.|
|00001d50| 20 20 4f 6e 20 74 68 65 | 73 65 20 73 79 73 74 65 | On the|se syste|
|00001d60| 6d 73 2c 20 74 68 65 0d | 67 61 6d 6d 61 20 63 6f |ms, the.|gamma co|
|00001d70| 72 72 65 63 74 69 6f 6e | 20 74 61 62 6c 65 20 61 |rrection| table a|
|00001d80| 63 74 73 20 61 73 20 61 | 20 66 69 6e 61 6c 2c 20 |cts as a| final, |
|00001d90| 6c 6f 6f 6b 2d 75 70 2c | 20 64 61 74 61 20 74 61 |look-up,| data ta|
|00001da0| 62 6c 65 2c 20 77 68 69 | 63 68 0d 74 72 61 6e 73 |ble, whi|ch.trans|
|00001db0| 6c 61 74 65 73 20 74 68 | 65 20 72 65 71 75 65 73 |lates th|e reques|
|00001dc0| 74 65 64 20 63 6f 6c 6f | 72 20 69 6e 74 6f 20 63 |ted colo|r into c|
|00001dd0| 6c 6f 73 65 73 74 20 61 | 76 61 69 6c 61 62 6c 65 |losest a|vailable|
|00001de0| 20 6c 69 6e 65 61 72 69 | 7a 65 64 20 6c 65 76 65 | lineari|zed leve|
|00001df0| 6c 2e 0d 54 68 65 73 65 | 20 67 61 6d 6d 61 20 74 |l..These| gamma t|
|00001e00| 61 62 6c 65 20 76 61 6c | 75 65 73 20 61 72 65 20 |able val|ues are |
|00001e10| 64 65 74 65 72 6d 69 6e | 65 64 20 65 6d 70 69 72 |determin|ed empir|
|00001e20| 69 63 61 6c 6c 79 20 62 | 79 20 6d 65 61 73 75 72 |ically b|y measur|
|00001e30| 69 6e 67 20 74 68 65 0d | 6f 75 74 70 75 74 20 6f |ing the.|output o|
|00001e40| 66 20 61 20 63 61 6c 69 | 62 72 61 74 65 64 20 64 |f a cali|brated d|
|00001e50| 69 73 70 6c 61 79 2e 0d | 20 0d 4d 6f 72 65 20 73 |isplay..| .More s|
|00001e60| 6f 70 68 69 73 74 69 63 | 61 74 65 64 20 73 79 73 |ophistic|ated sys|
|00001e70| 74 65 6d 73 20 6d 61 79 | 20 63 68 6f 6f 73 65 20 |tems may| choose |
|00001e80| 61 6e 20 61 6c 74 65 72 | 6e 61 74 69 76 65 20 74 |an alter|native t|
|00001e90| 6f 20 74 68 69 73 20 73 | 69 6d 70 6c 65 0d 6c 6f |o this s|imple.lo|
|00001ea0| 6f 6b 2d 75 70 20 6d 65 | 63 68 61 6e 69 73 6d 2e |ok-up me|chanism.|
|00001eb0| 20 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 | For in|stance, |
|00001ec0| 79 6f 75 20 63 61 6e 20 | 63 61 6c 63 75 6c 61 74 |you can |calculat|
|00001ed0| 65 20 67 61 6d 6d 61 20 | 63 6f 72 72 65 63 74 69 |e gamma |correcti|
|00001ee0| 6f 6e 0d 66 61 63 74 6f | 72 73 20 62 61 73 65 64 |on.facto|rs based|
|00001ef0| 20 6f 6e 20 61 20 6d 61 | 74 68 65 6d 61 74 69 63 | on a ma|thematic|
|00001f00| 61 6c 20 72 65 73 70 6f | 6e 73 65 20 66 75 6e 63 |al respo|nse func|
|00001f10| 74 69 6f 6e 2e 20 42 79 | 20 64 65 66 61 75 6c 74 |tion. By| default|
|00001f20| 2c 20 74 68 65 20 54 46 | 42 0d 63 61 72 64 20 75 |, the TF|B.card u|
|00001f30| 73 65 73 20 61 20 73 69 | 6e 67 6c 65 20 63 6f 72 |ses a si|ngle cor|
|00001f40| 72 65 63 74 69 6f 6e 20 | 74 61 62 6c 65 20 66 6f |rection |table fo|
|00001f50| 72 20 61 6c 6c 20 74 68 | 72 65 65 20 63 68 61 6e |r all th|ree chan|
|00001f60| 6e 65 6c 73 2e 20 4e 6f | 0d 63 61 6c 63 75 6c 61 |nels. No|.calcula|
|00001f70| 74 69 6f 6e 73 20 61 72 | 65 20 70 65 72 66 6f 72 |tions ar|e perfor|
|00001f80| 6d 65 64 20 6f 6e 20 74 | 68 65 20 69 6e 63 6f 6d |med on t|he incom|
|00001f90| 69 6e 67 20 63 6f 6c 6f | 72 20 74 61 62 6c 65 20 |ing colo|r table |
|00001fa0| 6f 74 68 65 72 20 74 68 | 61 6e 20 73 69 6d 70 6c |other th|an simpl|
|00001fb0| 65 0d 6c 6f 6f 6b 75 70 | 2e 20 20 43 61 72 64 73 |e.lookup|. Cards|
|00001fc0| 20 63 61 6e 20 72 65 6d | 65 6d 62 65 72 20 74 68 | can rem|ember th|
|00001fd0| 65 20 73 70 65 63 69 66 | 69 63 20 6d 6f 6e 69 74 |e specif|ic monit|
|00001fe0| 6f 72 20 63 6f 6e 66 69 | 67 75 72 61 74 69 6f 6e |or confi|guration|
|00001ff0| 20 61 74 20 74 68 65 0d | 62 65 67 69 6e 6e 69 6e | at the.|beginnin|
|00002000| 67 20 6f 66 20 74 68 65 | 20 67 46 6f 72 6d 75 6c |g of the| gFormul|
|00002010| 61 44 61 74 61 20 66 69 | 65 6c 64 2c 20 61 6c 6c |aData fi|eld, all|
|00002020| 6f 77 69 6e 67 20 69 74 | 20 74 6f 20 69 64 65 6e |owing it| to iden|
|00002030| 74 69 66 79 20 61 6e 64 | 20 75 73 65 20 6f 6e 6c |tify and| use onl|
|00002040| 79 0d 67 61 6d 6d 61 20 | 74 61 62 6c 65 73 20 64 |y.gamma |tables d|
|00002050| 65 76 65 6c 6f 70 65 64 | 20 66 6f 72 20 74 68 65 |eveloped| for the|
|00002060| 20 63 75 72 72 65 6e 74 | 6c 79 20 63 6f 6e 6e 65 | current|ly conne|
|00002070| 63 74 65 64 20 6d 6f 6e | 69 74 6f 72 2e 0d 20 0d |cted mon|itor.. .|
|00002080| 67 43 68 61 6e 43 6e 74 | 20 69 73 20 74 68 65 20 |gChanCnt| is the |
|00002090| 6e 75 6d 62 65 72 20 6f | 66 20 6c 6f 6f 6b 2d 75 |number o|f look-u|
|000020a0| 70 20 74 61 62 6c 65 73 | 20 69 6e 20 67 44 61 74 |p tables| in gDat|
|000020b0| 61 2c 20 62 65 6c 6f 77 | 2e 20 49 66 20 74 68 65 |a, below|. If the|
|000020c0| 72 65 20 69 73 20 6d 6f | 72 65 0d 74 68 61 6e 20 |re is mo|re.than |
|000020d0| 6f 6e 65 20 63 68 61 6e | 6e 65 6c 20 6f 66 20 67 |one chan|nel of g|
|000020e0| 61 6d 6d 61 20 63 6f 72 | 72 65 63 74 69 6f 6e 20 |amma cor|rection |
|000020f0| 64 61 74 61 2c 20 74 68 | 65 6e 20 74 68 65 20 52 |data, th|en the R|
|00002100| 2c 20 47 2c 20 61 6e 64 | 20 42 20 74 61 62 6c 65 |, G, and| B table|
|00002110| 73 0d 66 6f 6c 6c 6f 77 | 20 65 61 63 68 20 6f 74 |s.follow| each ot|
|00002120| 68 65 72 2c 20 72 65 73 | 70 65 63 74 69 76 65 6c |her, res|pectivel|
|00002130| 79 2c 20 61 74 20 74 68 | 65 20 65 6e 64 20 6f 66 |y, at th|e end of|
|00002140| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 2e 0d | the str|ucture..|
|00002150| 20 0d 67 44 61 74 61 43 | 6e 74 20 69 73 20 74 68 | .gDataC|nt is th|
|00002160| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 69 73 63 |e number| of disc|
|00002170| 72 65 74 65 20 6c 6f 6f | 6b 2d 75 70 20 76 61 6c |rete loo|k-up val|
|00002180| 75 65 73 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 |ues incl|uded in |
|00002190| 65 61 63 68 20 6f 66 20 | 74 68 65 0d 63 68 61 6e |each of |the.chan|
|000021a0| 6e 65 6c 27 73 20 63 6f | 72 72 65 63 74 69 6f 6e |nel's co|rrection|
|000021b0| 20 74 61 62 6c 65 2e 20 | 20 49 74 20 69 73 20 61 | table. | It is a|
|000021c0| 6c 77 61 79 73 20 65 71 | 75 61 6c 20 74 6f 20 32 |lways eq|ual to 2|
|000021d0| 67 44 61 74 61 57 69 64 | 74 68 20 5b 64 67 70 3a |gDataWid|th [dgp:|
|000021e0| 20 49 20 74 68 69 6e 6b | 20 74 68 65 79 20 6d 65 | I think| they me|
|000021f0| 61 6e 74 20 74 6f 20 73 | 61 79 20 31 3c 3c 67 44 |ant to s|ay 1<<gD|
|00002200| 61 74 61 57 69 64 74 68 | 5d 2c 20 62 75 74 20 72 |ataWidth|], but r|
|00002210| 65 66 65 72 73 20 74 6f | 20 6e 75 6d 62 65 72 20 |efers to| number |
|00002220| 6f 66 20 62 79 74 65 73 | 20 74 68 61 74 20 74 68 |of bytes| that th|
|00002230| 69 73 20 63 68 61 6e 6e | 65 6c 27 73 20 64 61 74 |is chann|el's dat|
|00002240| 61 20 6f 63 63 75 70 69 | 65 73 2e 20 0d 20 0d 67 |a occupi|es. . .g|
|00002250| 44 61 74 61 57 69 64 74 | 68 20 64 65 73 63 72 69 |DataWidt|h descri|
|00002260| 62 65 73 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |bes the |number o|
|00002270| 66 20 73 69 67 6e 69 66 | 69 63 61 6e 74 20 62 69 |f signif|icant bi|
|00002280| 74 73 20 6f 66 20 69 6e | 66 6f 72 6d 61 74 69 6f |ts of in|formatio|
|00002290| 6e 0d 61 76 61 69 6c 61 | 62 6c 65 20 69 6e 20 65 |n.availa|ble in e|
|000022a0| 61 63 68 20 65 6e 74 72 | 79 20 69 6e 20 61 20 63 |ach entr|y in a c|
|000022b0| 68 61 6e 6e 65 6c 27 73 | 20 63 6f 72 72 65 63 74 |hannel's| correct|
|000022c0| 69 6f 6e 20 74 61 62 6c | 65 2e 20 54 68 65 20 64 |ion tabl|e. The d|
|000022d0| 61 74 61 20 61 6c 77 61 | 79 73 0d 61 70 70 65 61 |ata alwa|ys.appea|
|000022e0| 72 73 20 61 73 20 67 44 | 61 74 61 57 69 64 74 68 |rs as gD|ataWidth|
|000022f0| 20 62 69 74 73 2c 20 72 | 69 67 68 74 2d 6a 75 73 | bits, r|ight-jus|
|00002300| 74 69 66 69 65 64 20 69 | 6e 20 61 20 66 69 65 6c |tified i|n a fiel|
|00002310| 64 20 74 68 61 74 20 69 | 73 20 74 68 65 20 6e 65 |d that i|s the ne|
|00002320| 78 74 0d 6c 61 72 67 65 | 72 20 6e 75 6d 62 65 72 |xt.large|r number|
|00002330| 20 6f 66 20 62 79 74 65 | 73 20 74 68 61 6e 20 67 | of byte|s than g|
|00002340| 44 61 74 61 57 69 64 74 | 68 2e 20 20 42 65 63 61 |DataWidt|h. Beca|
|00002350| 75 73 65 20 69 74 20 69 | 73 20 72 61 72 65 20 74 |use it i|s rare t|
|00002360| 6f 20 68 61 76 65 0d 64 | 65 76 69 63 65 73 20 77 |o have.d|evices w|
|00002370| 69 74 68 20 6d 6f 72 65 | 20 74 68 61 6e 20 65 69 |ith more| than ei|
|00002380| 67 68 74 20 62 69 74 73 | 20 6f 66 20 43 4c 55 54 |ght bits| of CLUT|
|00002390| 20 72 65 73 6f 6c 75 74 | 69 6f 6e 2c 20 76 69 72 | resolut|ion, vir|
|000023a0| 74 75 61 6c 6c 79 20 61 | 6c 6c 0d 64 65 76 69 63 |tually a|ll.devic|
|000023b0| 65 73 20 70 61 63 6b 20 | 74 68 65 69 72 20 63 6f |es pack |their co|
|000023c0| 72 72 65 63 74 69 6f 6e | 20 64 61 74 61 20 69 6e |rrection| data in|
|000023d0| 74 6f 20 62 79 74 65 73 | 2e 0d 20 0d 67 44 61 74 |to bytes|.. .gDat|
|000023e0| 61 20 69 73 20 61 63 74 | 75 61 6c 20 63 6f 72 72 |a is act|ual corr|
|000023f0| 65 63 74 69 6f 6e 20 74 | 61 62 6c 65 20 64 61 74 |ection t|able dat|
|00002400| 61 2e 20 49 66 20 74 68 | 65 72 65 20 69 73 20 6d |a. If th|ere is m|
|00002410| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 63 68 61 |ore than| one cha|
|00002420| 6e 6e 65 6c 27 73 0d 69 | 6e 66 6f 72 6d 61 74 69 |nnel's.i|nformati|
|00002430| 6f 6e 2c 20 65 61 63 68 | 20 74 61 62 6c 65 20 66 |on, each| table f|
|00002440| 6f 6c 6c 6f 77 73 20 74 | 68 65 20 6e 65 78 74 20 |ollows t|he next |
|00002450| 69 6e 20 52 2c 20 47 2c | 20 42 20 6f 72 64 65 72 |in R, G,| B order|
|00002460| 2e 20 54 68 65 20 73 74 | 61 6e 64 61 72 64 0d 74 |. The st|andard.t|
|00002470| 61 62 6c 65 73 20 69 6e | 63 6c 75 64 65 64 20 69 |ables in|cluded i|
|00002480| 6e 20 41 70 70 6c 65 27 | 73 20 64 72 69 76 65 72 |n Apple'|s driver|
|00002490| 20 68 61 76 65 20 6f 6e | 6c 79 20 6f 6e 65 20 74 | have on|ly one t|
|000024a0| 61 62 6c 65 2c 20 77 68 | 69 63 68 20 69 73 20 61 |able, wh|ich is a|
|000024b0| 70 70 6c 69 65 64 20 74 | 6f 0d 61 6c 6c 20 74 68 |pplied t|o.all th|
|000024c0| 72 65 65 20 6f 75 74 70 | 75 74 20 63 68 61 6e 6e |ree outp|ut chann|
|000024d0| 65 6c 73 2e 20 20 42 65 | 63 61 75 73 65 20 50 61 |els. Be|cause Pa|
|000024e0| 73 63 61 6c 20 63 61 6e | 6e 6f 74 20 65 78 70 72 |scal can|not expr|
|000024f0| 65 73 73 20 76 61 72 69 | 61 62 6c 65 20 73 69 7a |ess vari|able siz|
|00002500| 65 0d 66 69 65 6c 64 73 | 20 69 6e 20 72 65 63 6f |e.fields| in reco|
|00002510| 72 64 20 73 74 72 75 63 | 74 75 72 65 73 2c 20 74 |rd struc|tures, t|
|00002520| 68 65 20 69 6e 64 65 70 | 65 6e 64 65 6e 74 20 63 |he indep|endent c|
|00002530| 68 61 6e 6e 65 6c 73 20 | 61 72 65 20 6e 6f 74 20 |hannels |are not |
|00002540| 69 6e 64 69 76 69 64 75 | 61 6c 6c 79 0d 6e 61 6d |individu|ally.nam|
|00002550| 65 64 2e 0d 20 0d 22 67 | 61 6d 61 22 20 52 65 73 |ed.. ."g|ama" Res|
|00002560| 6f 75 72 63 65 20 46 6f | 72 6d 61 74 0d 2d 2d 2d |ource Fo|rmat.---|
|00002570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002580| 2d 2d 2d 0d 49 6e 20 61 | 64 64 69 74 69 6f 6e 20 |---.In a|ddition |
|00002590| 74 6f 20 74 68 65 20 52 | 41 4d 20 64 61 74 61 20 |to the R|AM data |
|000025a0| 73 74 72 75 63 74 75 72 | 65 20 66 6f 72 20 67 61 |structur|e for ga|
|000025b0| 6d 6d 61 20 74 61 62 6c | 65 73 20 63 6f 76 65 72 |mma tabl|es cover|
|000025c0| 65 64 20 61 62 6f 76 65 | 2c 0d 74 68 65 72 65 20 |ed above|,.there |
|000025d0| 69 73 20 61 20 73 74 61 | 6e 64 61 72 64 20 72 65 |is a sta|ndard re|
|000025e0| 73 6f 75 72 63 65 20 66 | 6f 72 6d 61 74 20 66 6f |source f|ormat fo|
|000025f0| 72 20 67 61 6d 6d 61 20 | 74 61 62 6c 65 20 72 65 |r gamma |table re|
|00002600| 73 6f 75 72 63 65 73 2e | 20 20 4c 69 6b 65 20 6d |sources.| Like m|
|00002610| 61 6e 79 0d 6f 74 68 65 | 72 20 72 65 73 6f 75 72 |any.othe|r resour|
|00002620| 63 65 20 74 65 6d 70 6c | 61 74 65 73 2c 20 74 68 |ce templ|ates, th|
|00002630| 65 20 67 61 6d 6d 61 20 | 73 74 72 75 63 74 75 72 |e gamma |structur|
|00002640| 65 20 69 73 20 61 6e 20 | 69 6d 61 67 65 20 6f 66 |e is an |image of|
|00002650| 20 74 68 65 20 52 41 4d | 20 66 6f 72 6d 0d 73 74 | the RAM| form.st|
|00002660| 6f 72 65 64 20 69 6e 20 | 72 65 73 6f 75 72 63 65 |ored in |resource|
|00002670| 20 66 6f 72 6d 61 74 2e | 20 54 68 65 72 65 20 61 | format.| There a|
|00002680| 72 65 20 6e 6f 20 63 68 | 61 6e 67 65 73 2e 0d 20 |re no ch|anges.. |
|00002690| 0d 55 73 69 6e 67 20 47 | 61 6d 6d 61 20 43 6f 72 |.Using G|amma Cor|
|000026a0| 72 65 63 74 69 6f 6e 0d | 2d 2d 2d 2d 2d 2d 2d 2d |rection.|--------|
|000026b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 0d 47 |--------|------.G|
|000026c0| 61 6d 6d 61 20 63 6f 72 | 72 65 63 74 69 6f 6e 20 |amma cor|rection |
|000026d0| 69 73 20 61 6c 77 61 79 | 73 20 61 70 70 6c 69 65 |is alway|s applie|
|000026e0| 64 20 62 79 20 74 68 65 | 20 54 46 42 20 76 69 64 |d by the| TFB vid|
|000026f0| 65 6f 20 64 72 69 76 65 | 72 2e 20 41 74 20 64 72 |eo drive|r. At dr|
|00002700| 69 76 65 72 20 6f 70 65 | 6e 0d 74 69 6d 65 2c 20 |iver ope|n.time, |
|00002710| 74 68 65 20 64 72 69 76 | 65 72 20 69 73 20 75 73 |the driv|er is us|
|00002720| 75 61 6c 6c 79 20 69 6e | 69 74 69 61 6c 69 7a 65 |ually in|itialize|
|00002730| 64 20 77 69 74 68 20 61 | 20 6c 69 6e 65 61 72 20 |d with a| linear |
|00002740| 28 6e 6f 6e 63 6f 72 72 | 65 63 74 69 6e 67 29 0d |(noncorr|ecting).|
|00002750| 67 61 6d 6d 61 20 74 61 | 62 6c 65 2e 20 20 57 68 |gamma ta|ble. Wh|
|00002760| 65 6e 20 5f 49 6e 69 74 | 47 72 61 66 20 69 73 20 |en _Init|Graf is |
|00002770| 63 61 6c 6c 65 64 2c 20 | 74 68 65 20 22 73 63 72 |called, |the "scr|
|00002780| 6e 22 20 73 63 72 65 65 | 6e 20 63 6f 6e 66 69 67 |n" scree|n config|
|00002790| 75 72 61 74 69 6f 6e 0d | 72 65 73 6f 75 72 63 65 |uration.|resource|
|000027a0| 20 69 73 20 72 65 61 64 | 20 66 72 6f 6d 20 74 68 | is read| from th|
|000027b0| 65 20 53 79 73 74 65 6d | 20 66 69 6c 65 2e 20 54 |e System| file. T|
|000027c0| 68 69 73 20 72 65 73 6f | 75 72 63 65 20 28 64 65 |his reso|urce (de|
|000027d0| 73 63 72 69 62 65 64 20 | 69 6e 20 22 49 6e 73 69 |scribed |in "Insi|
|000027e0| 64 65 0d 4d 61 63 69 6e | 74 6f 73 68 20 56 6f 6c |de.Macin|tosh Vol|
|000027f0| 75 6d 65 20 56 22 29 20 | 69 6e 63 6c 75 64 65 73 |ume V") |includes|
|00002800| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 61 62 6f | informa|tion abo|
|00002810| 75 74 20 74 68 65 20 73 | 69 7a 65 20 61 6e 64 20 |ut the s|ize and |
|00002820| 6f 72 69 65 6e 74 61 74 | 69 6f 6e 0d 6f 66 20 74 |orientat|ion.of t|
|00002830| 68 65 20 64 69 66 66 65 | 72 65 6e 74 20 6d 6f 6e |he diffe|rent mon|
|00002840| 69 74 6f 72 73 20 63 6f | 6e 66 69 67 75 72 65 64 |itors co|nfigured|
|00002850| 20 69 6e 74 6f 20 74 68 | 65 20 73 79 73 74 65 6d | into th|e system|
|00002860| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 69 |, includ|ing thei|
|00002870| 72 20 6c 61 73 74 0d 76 | 69 64 65 6f 20 6d 6f 64 |r last.v|ideo mod|
|00002880| 65 20 28 70 69 78 65 6c | 73 69 7a 65 29 2c 20 63 |e (pixel|size), c|
|00002890| 6f 6c 6f 72 20 74 61 62 | 6c 65 2c 20 61 6e 64 20 |olor tab|le, and |
|000028a0| 67 61 6d 6d 61 20 74 61 | 62 6c 65 2e 0d 20 0d 49 |gamma ta|ble.. .I|
|000028b0| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 22 67 |f there |is no "g|
|000028c0| 61 6d 61 22 20 72 65 73 | 6f 75 72 63 65 20 49 44 |ama" res|ource ID|
|000028d0| 20 73 70 65 63 69 66 69 | 65 64 2c 20 6f 72 20 74 | specifi|ed, or t|
|000028e0| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 49 44 20 |he speci|fied ID |
|000028f0| 69 73 20 6e 6f 74 0d 70 | 72 65 73 65 6e 74 2c 20 |is not.p|resent, |
|00002900| 74 68 65 6e 20 61 20 64 | 65 66 61 75 6c 74 20 67 |then a d|efault g|
|00002910| 61 6d 6d 61 20 74 61 62 | 6c 65 2c 20 22 67 61 6d |amma tab|le, "gam|
|00002920| 61 22 20 3d 30 20 69 73 | 20 6c 6f 61 64 65 64 20 |a" =0 is| loaded |
|00002930| 66 72 6f 6d 20 74 68 65 | 20 53 79 73 74 65 6d 0d |from the| System.|
|00002940| 66 69 6c 65 20 61 6e 64 | 20 75 73 65 64 20 28 74 |file and| used (t|
|00002950| 68 69 73 20 69 73 20 74 | 68 65 20 74 61 62 6c 65 |his is t|he table|
|00002960| 20 63 61 6c 63 75 6c 61 | 74 65 64 20 66 6f 72 20 | calcula|ted for |
|00002970| 74 68 65 20 54 46 42 20 | 63 61 72 64 29 2e 20 49 |the TFB |card). I|
|00002980| 66 20 74 68 65 0d 73 70 | 65 63 69 66 69 65 64 20 |f the.sp|ecified |
|00002990| 72 65 73 6f 75 72 63 65 | 20 69 73 20 66 6f 75 6e |resource| is foun|
|000029a0| 64 2c 20 74 68 65 6e 20 | 74 68 65 20 61 70 70 72 |d, then |the appr|
|000029b0| 6f 70 72 69 61 74 65 20 | 72 65 73 6f 75 72 63 65 |opriate |resource|
|000029c0| 20 69 73 20 6c 6f 61 64 | 65 64 2c 20 61 6e 64 0d | is load|ed, and.|
|000029d0| 61 20 63 6f 6e 74 72 6f | 6c 20 63 61 6c 6c 20 69 |a contro|l call i|
|000029e0| 73 20 69 73 73 75 65 64 | 20 74 6f 20 74 68 65 20 |s issued| to the |
|000029f0| 64 72 69 76 65 72 20 74 | 6f 20 6d 61 6b 65 20 74 |driver t|o make t|
|00002a00| 68 69 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |his the |current |
|00002a10| 67 61 6d 6d 61 0d 74 61 | 62 6c 65 2e 20 55 6e 66 |gamma.ta|ble. Unf|
|00002a20| 6f 72 74 75 6e 61 74 65 | 6c 79 2c 20 74 68 65 72 |ortunate|ly, ther|
|00002a30| 65 20 69 73 20 63 75 72 | 72 65 6e 74 6c 79 20 6e |e is cur|rently n|
|00002a40| 6f 20 74 6f 6f 6c 20 74 | 6f 20 73 65 74 20 74 68 |o tool t|o set th|
|00002a50| 65 20 22 67 61 6d 61 22 | 20 49 44 2c 0d 73 68 6f |e "gama"| ID,.sho|
|00002a60| 72 74 20 6f 66 20 6d 6f | 64 69 66 79 69 6e 67 20 |rt of mo|difying |
|00002a70| 74 68 65 20 22 73 63 72 | 6e 22 20 72 65 73 6f 75 |the "scr|n" resou|
|00002a80| 72 63 65 20 64 69 72 65 | 63 74 6c 79 2e 0d 20 0d |rce dire|ctly.. .|
|00002a90| 54 6f 20 66 61 63 69 6c | 69 74 61 74 65 20 74 68 |To facil|itate th|
|00002aa0| 65 20 75 73 65 20 6f 66 | 20 74 68 65 20 67 61 6d |e use of| the gam|
|00002ab0| 6d 61 20 74 61 62 6c 65 | 2c 20 74 68 65 72 65 20 |ma table|, there |
|00002ac0| 61 72 65 20 74 77 6f 20 | 63 61 6c 6c 73 20 69 6e |are two |calls in|
|00002ad0| 20 74 68 65 0d 73 74 61 | 6e 64 61 72 64 2c 20 76 | the.sta|ndard, v|
|00002ae0| 69 64 65 6f 2d 64 72 69 | 76 65 72 20 72 6f 75 74 |ideo-dri|ver rout|
|00002af0| 69 6e 65 73 20 74 68 61 | 74 20 73 65 74 20 74 68 |ines tha|t set th|
|00002b00| 65 20 67 61 6d 6d 61 20 | 74 61 62 6c 65 20 28 63 |e gamma |table (c|
|00002b10| 6f 6e 74 72 6f 6c 20 63 | 61 6c 6c 20 34 2c 0d 53 |ontrol c|all 4,.S|
|00002b20| 65 74 47 61 6d 6d 61 29 | 20 61 6e 64 20 72 65 74 |etGamma)| and ret|
|00002b30| 72 69 65 76 65 20 74 68 | 65 20 70 6f 69 6e 74 65 |rieve th|e pointe|
|00002b40| 72 20 74 6f 20 74 68 65 | 20 63 75 72 72 65 6e 74 |r to the| current|
|00002b50| 20 67 61 6d 6d 61 20 74 | 61 62 6c 65 20 28 73 74 | gamma t|able (st|
|00002b60| 61 74 75 73 20 63 61 6c | 6c 0d 36 20 5b 64 67 70 |atus cal|l.6 [dgp|
|00002b70| 3a 20 6f 6f 70 73 2c 20 | 74 68 65 79 20 6d 65 61 |: oops, |they mea|
|00002b80| 6e 20 38 5d 20 6f 6e 20 | 54 46 42 20 72 65 76 20 |n 8] on |TFB rev |
|00002b90| 32 20 64 72 69 76 65 72 | 73 20 61 6e 64 20 75 70 |2 driver|s and up|
|00002ba0| 29 2e 20 54 68 65 73 65 | 20 63 61 6c 6c 73 20 73 |). These| calls s|
|00002bb0| 69 6d 70 6c 79 20 74 61 | 6b 65 20 61 6e 64 20 72 |imply ta|ke and r|
|00002bc0| 65 74 75 72 6e 20 61 20 | 70 6f 69 6e 74 65 72 20 |eturn a |pointer |
|00002bd0| 74 6f 20 61 20 47 61 6d | 6d 61 54 62 6c 20 73 74 |to a Gam|maTbl st|
|00002be0| 72 75 63 74 75 72 65 2e | 0d 20 0d 20 0d 43 6f 70 |ructure.|. . .Cop|
|00002bf0| 79 72 69 67 68 74 20 31 | 39 39 31 20 41 70 70 6c |yright 1|991 Appl|
|00002c00| 65 20 43 6f 6d 70 75 74 | 65 72 2c 20 49 6e 63 2e |e Comput|er, Inc.|
|00002c10| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|00002c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002c50| 2a 2a 2a 2a 2a 0d 57 72 | 69 74 74 65 6e 20 26 20 |*****.Wr|itten & |
|00002c60| 73 65 6e 74 20 74 6f 20 | 41 70 70 6c 65 3a 20 4a |sent to |Apple: J|
|00002c70| 75 6c 79 20 32 34 2c 20 | 31 39 38 39 0d 52 65 76 |uly 24, |1989.Rev|
|00002c80| 69 73 65 64 3a 20 4a 61 | 6e 75 61 72 79 20 37 2c |ised: Ja|nuary 7,|
|00002c90| 20 31 39 39 33 0d 0d 49 | 20 61 6d 20 77 72 69 74 | 1993..I| am writ|
|00002ca0| 69 6e 67 20 74 6f 20 72 | 65 70 6f 72 74 20 73 6f |ing to r|eport so|
|00002cb0| 6d 65 20 65 72 72 6f 72 | 73 20 69 6e 20 74 68 65 |me error|s in the|
|00002cc0| 20 6f 74 68 65 72 77 69 | 73 65 20 68 65 6c 70 66 | otherwi|se helpf|
|00002cd0| 75 6c 20 64 6f 63 75 6d | 65 6e 74 3a 0d 22 47 72 |ul docum|ent:."Gr|
|00002ce0| 61 79 73 63 61 6c 65 20 | 49 6e 66 6f 72 6d 61 74 |ayscale |Informat|
|00002cf0| 69 6f 6e 22 20 28 52 65 | 76 2e 20 32 33 20 41 70 |ion" (Re|v. 23 Ap|
|00002d00| 72 69 6c 20 27 38 39 29 | 20 69 6e 20 54 65 63 68 |ril '89)| in Tech|
|00002d10| 20 49 6e 66 6f 2e 0d 0d | 30 2e 20 22 41 20 71 75 | Info...|0. "A qu|
|00002d20| 69 63 6b 20 61 6e 64 20 | 65 61 73 79 20 77 61 79 |ick and |easy way|
|00002d30| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 69 73 20 74 | to do t|his is t|
|00002d40| 6f 20 70 61 73 73 20 2d | 31 20 74 6f 20 74 68 65 |o pass -|1 to the|
|00002d50| 20 53 65 74 47 61 6d 6d | 61 20 43 6f 6e 74 72 6f | SetGamm|a Contro|
|00002d60| 6c 20 70 61 72 61 6d 65 | 74 65 72 20 62 6c 6f 63 |l parame|ter bloc|
|00002d70| 6b 20 61 73 20 74 68 65 | 20 6e 65 77 20 74 61 62 |k as the| new tab|
|00002d80| 6c 65 20 61 64 64 72 65 | 73 73 2e 22 20 20 41 63 |le addre|ss." Ac|
|00002d90| 63 6f 72 64 69 6e 67 20 | 74 6f 20 44 65 73 69 67 |cording |to Desig|
|00002da0| 6e 69 6e 67 20 43 61 72 | 64 73 20 26 20 44 72 69 |ning Car|ds & Dri|
|00002db0| 76 65 72 73 2c 20 33 72 | 64 20 45 64 2e 2c 20 77 |vers, 3r|d Ed., w|
|00002dc0| 65 20 73 68 6f 75 6c 64 | 20 70 61 73 73 20 4e 55 |e should| pass NU|
|00002dd0| 4c 4c 2c 20 6e 6f 74 20 | 2d 31 2e 0d 0d 31 2e 20 |LL, not |-1...1. |
|00002de0| 49 6e 20 74 68 65 20 6e | 65 78 74 20 74 6f 20 6c |In the n|ext to l|
|00002df0| 61 73 74 20 6c 69 6e 65 | 2c 20 69 74 20 73 61 79 |ast line|, it say|
|00002e00| 73 20 74 68 61 74 20 47 | 65 74 47 61 6d 6d 61 20 |s that G|etGamma |
|00002e10| 69 73 20 22 28 73 74 61 | 74 75 73 20 63 61 6c 6c |is "(sta|tus call|
|00002e20| 20 36 20 6f 6e 20 54 46 | 42 20 72 65 76 20 32 20 | 6 on TF|B rev 2 |
|00002e30| 64 72 69 76 65 72 73 20 | 61 6e 64 20 75 70 29 22 |drivers |and up)"|
|00002e40| 2e 20 54 68 69 73 20 69 | 73 20 77 72 6f 6e 67 2e |. This i|s wrong.|
|00002e50| 20 54 68 65 20 4d 50 57 | 20 68 65 61 64 65 72 20 | The MPW| header |
|00002e60| 66 69 6c 65 20 56 69 64 | 65 6f 2e 68 20 63 6f 72 |file Vid|eo.h cor|
|00002e70| 72 65 63 74 6c 79 20 64 | 65 66 69 6e 65 73 20 63 |rectly d|efines c|
|00002e80| 73 63 47 65 74 47 61 6d | 6d 61 20 3d 20 38 2e 20 |scGetGam|ma = 8. |
|00002e90| 0d 0d 32 2e 20 54 68 65 | 20 65 78 70 6c 61 6e 61 |..2. The| explana|
|00002ea0| 74 69 6f 6e 20 6f 66 20 | 67 44 61 74 61 43 6e 74 |tion of |gDataCnt|
|00002eb0| 20 69 73 20 77 72 6f 6e | 67 2e 20 22 49 74 20 69 | is wron|g. "It i|
|00002ec0| 73 20 61 6c 77 61 79 73 | 20 65 71 75 61 6c 20 74 |s always| equal t|
|00002ed0| 6f 20 32 67 44 61 74 61 | 57 69 64 74 68 2e 2e 2e |o 2gData|Width...|
|00002ee0| 22 20 50 72 65 73 75 6d | 61 62 6c 79 20 69 74 20 |" Presum|ably it |
|00002ef0| 77 61 73 20 6d 65 61 6e | 74 20 74 6f 20 73 61 79 |was mean|t to say|
|00002f00| 20 32 5e 67 44 61 74 61 | 57 69 64 74 68 20 6f 72 | 2^gData|Width or|
|00002f10| 20 31 3c 3c 67 44 61 74 | 61 57 69 64 74 68 2e 20 | 1<<gDat|aWidth. |
|00002f20| 48 6f 77 65 76 65 72 2c | 20 69 73 20 74 68 69 73 |However,| is this|
|00002f30| 20 72 65 61 6c 6c 79 20 | 74 72 75 65 3f 20 54 68 | really |true? Th|
|00002f40| 65 72 65 20 69 73 20 61 | 20 76 69 64 65 6f 20 63 |ere is a| video c|
|00002f50| 61 72 64 20 6f 6e 20 74 | 68 65 20 6d 61 72 6b 65 |ard on t|he marke|
|00002f60| 74 20 6e 6f 77 20 77 69 | 74 68 20 39 2d 62 69 74 |t now wi|th 9-bit|
|00002f70| 20 64 61 63 73 2e 20 44 | 6f 65 73 20 69 74 20 63 | dacs. D|oes it c|
|00002f80| 6f 6e 66 6f 72 6d 20 74 | 6f 20 74 68 69 73 20 72 |onform t|o this r|
|00002f90| 75 6c 65 3f 0d 0d 33 2e | 20 41 6e 6f 74 68 65 72 |ule?..3.| Another|
|00002fa0| 20 65 72 72 6f 72 20 69 | 6e 20 74 68 65 20 73 61 | error i|n the sa|
|00002fb0| 6d 65 20 70 61 72 61 67 | 72 61 70 68 3a 20 22 54 |me parag|raph: "T|
|00002fc0| 68 65 20 64 61 74 61 20 | 61 6c 77 61 79 73 20 61 |he data |always a|
|00002fd0| 70 70 65 61 72 73 20 2e | 2e 2e 20 69 6e 20 61 20 |ppears .|.. in a |
|00002fe0| 66 69 65 6c 64 20 74 68 | 61 74 20 69 73 20 74 68 |field th|at is th|
|00002ff0| 65 20 6e 65 78 74 20 6c | 61 72 67 65 72 20 6e 75 |e next l|arger nu|
|00003000| 6d 62 65 72 20 6f 66 20 | 62 79 74 65 73 20 74 68 |mber of |bytes th|
|00003010| 61 6e 20 67 44 61 74 61 | 57 69 64 74 68 2e 22 20 |an gData|Width." |
|00003020| 41 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 69 |Accordin|g to thi|
|00003030| 73 20 73 65 6e 74 65 6e | 63 65 2c 20 73 69 6e 63 |s senten|ce, sinc|
|00003040| 65 20 67 44 61 74 61 57 | 69 64 74 68 20 69 73 20 |e gDataW|idth is |
|00003050| 38 20 62 69 74 73 2c 20 | 74 68 65 20 64 61 74 61 |8 bits, |the data|
|00003060| 20 77 6f 75 6c 64 20 62 | 65 20 73 74 6f 72 65 64 | would b|e stored|
|00003070| 20 69 6e 20 74 77 6f 20 | 62 79 74 65 73 2c 20 6e | in two |bytes, n|
|00003080| 6f 74 20 6f 6e 65 2e 20 | 57 68 61 74 20 69 73 20 |ot one. |What is |
|00003090| 69 6e 74 65 6e 64 65 64 | 20 69 73 20 22 6c 61 72 |intended| is "lar|
|000030a0| 67 65 72 20 6f 72 20 65 | 71 75 61 6c 20 74 6f 22 |ger or e|qual to"|
|000030b0| 2c 20 6f 72 20 74 6f 20 | 72 65 70 68 72 61 73 65 |, or to |rephrase|
|000030c0| 2c 20 22 74 68 65 20 73 | 6d 61 6c 6c 65 73 74 20 |, "the s|mallest |
|000030d0| 6e 75 6d 62 65 72 20 6f | 66 20 62 79 74 65 73 20 |number o|f bytes |
|000030e0| 74 68 61 74 20 77 69 6c | 6c 20 68 6f 6c 64 20 67 |that wil|l hold g|
|000030f0| 44 61 74 61 57 69 64 74 | 68 20 62 69 74 73 22 2e |DataWidt|h bits".|
|00003100| 0d 0d 44 65 6e 69 73 20 | 47 2e 20 50 65 6c 6c 69 |..Denis |G. Pelli|
|00003110| 0d 49 6e 73 74 69 74 75 | 74 65 20 66 6f 72 20 53 |.Institu|te for S|
|00003120| 65 6e 73 6f 72 79 20 52 | 65 73 65 61 72 63 68 0d |ensory R|esearch.|
|00003130| 53 79 72 61 63 75 73 65 | 20 55 6e 69 76 65 72 73 |Syracuse| Univers|
|00003140| 69 74 79 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ity.....|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 01 00 00 00 02 0e | 00 00 01 0e 00 00 00 6a |........|.......j|
|00003190| 00 00 00 ac 1a 50 72 6f | 6d 65 74 68 65 75 73 20 |.....Pro|metheus |
|000031a0| 50 72 6f 4d 6f 64 65 6d | 20 55 6c 74 69 6d 61 72 |ProModem| Ultimar|
|000031b0| 1a 47 72 61 79 73 63 61 | 6c 65 20 69 6e 66 6f 72 |.Graysca|le infor|
|000031c0| 6d 61 74 69 6f 6e 2e 6e | 6f 74 65 66 02 00 00 00 |mation.n|otef....|
|000031d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 ab bf ee 3b 00 00 | 00 00 00 00 02 78 00 00 |.....;..|.....x..|
|00003200| 00 00 00 00 00 00 c5 12 | 00 01 00 00 00 00 00 00 |........|........|
|00003210| 00 00 00 00 00 00 0e 00 | 00 00 00 ac 08 51 4d 20 |........|.....QM |
|00003220| 4d 65 6e 75 aa 6e 02 00 | 00 00 49 4e 49 54 43 45 |Menu.n..|..INITCE|
|00003230| 4d 4d 21 00 00 f0 02 a0 | 00 00 00 00 53 c5 00 00 |MM!.....|....S...|
|00003240| 00 00 00 00 00 00 00 00 | 00 00 00 00 92 f1 00 00 |........|........|
|00003250| 9c 00 a5 ee db 80 a5 ee | db 80 00 00 00 00 00 00 |........|........|
|00003260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 02 00 00 |........|........|
|00003270| 00 00 00 00 00 00 00 00 | 00 00 00 00 07 ec 00 06 |........|........|
|00003280| 00 00 00 6c 00 03 00 00 | 00 00 00 00 00 00 00 00 |...l....|........|
|00003290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000032f0| 00 00 00 10 00 00 00 00 | 00 23 00 0d 00 00 00 00 |........|.#......|
|00003300| 00 00 00 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |.......H|..Monaco|
|00003310| 00 00 00 00 00 00 14 e0 | 00 02 00 4c 00 29 00 01 |........|...L.)..|
|00003320| 00 29 00 06 00 b5 00 01 | 00 b5 00 06 00 04 00 50 |.)......|.......P|
|00003330| 00 20 01 dd 02 3d 00 50 | 00 20 01 dd 02 3d a7 71 |. ...=.P|. ...=.q|
|00003340| 83 a9 00 00 00 18 00 00 | 00 f4 00 00 00 00 01 00 |........|........|
|00003350| 00 00 00 18 00 01 00 00 | 2a 2f 00 00 2a 58 0d 43 |........|*/..*X.C|
|00003360| 6f 6d 70 61 72 65 5f 4d | 61 72 6b 00 00 00 00 1e |ompare_M|ark.....|
|00003370| 00 50 00 20 01 dd 02 3d | 00 50 00 20 01 dd 02 3d |.P. ...=|.P. ...=|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 01 00 00 00 02 0e 00 00 | 01 0e 00 00 00 6a 00 ff |........|.....j..|
|000033a0| 4c c8 0c 7e 00 00 00 1c | 00 6a 00 01 41 64 72 73 |L..~....|.j..Adrs|
|000033b0| 00 01 00 12 4d 50 53 52 | 00 02 00 2a 00 01 ff ff |....MPSR|...*....|
|000033c0| 00 00 00 00 00 00 00 00 | 00 04 ff ff 00 00 00 70 |........|.......p|
|000033d0| 00 00 00 00 03 ed ff ff | 00 00 00 84 00 00 00 00 |........|........|
|000033e0| 03 ef ff ff 00 00 00 d0 | 00 00 00 00 03 f0 ff ff |........|........|
|000033f0| 00 00 00 ec 01 01 4b 00 | 00 00 00 00 00 00 00 00 |......K.|........|
+--------+-------------------------+-------------------------+--------+--------+